What is 0.00000000000001 in scientific notation?
Answer:
1.0E-14
Skeleton Square Root Program
Here is a skeleton of the program, with the loop condition
translated from math into Java.
The absolute value of a double is calculated by Math.abs(double).
The formula for updating the guess is:
newGuess = N/(2*oldGuess) + oldGuess/2
In an assignment statement, first
the value on the right of the = is calculated.
Then that value is copied to the variable on the left.
This allows you to complete the program using
just one variable, guess.
QUESTION 16:
Complete the program by filling in the loop body. You should be able to type in your answer into the text area. (But nothing else will happen.)