A good answer might be:The completed program is given below | |
Complete Square Root ProgramIn the completed program, the roles of "oldGuess" and of "newGuess" can both be played by the variable guess.
Here is the output of the program: C:\users\default\JavaLessons\chap16>java squareRoot Symantec Java! JustInTime Compiler Version 210.063 for JDK 1.1.3 Copyright (C) 1996-97 Symantec Corporation The square root of 3.0 is 1.7320508075688772 The last several digits of this output are probably in error since the program only computes 14 decimal places of accuracy. | |
QUESTION 15:If you asked for more accuracy than is possible in double precision variables, what might happen? For example, say that you asked for 21 accurate figures. Click Here after you have answered the question |