Test1
and save your class in a file named
Test1.java
.
submit 1020 Test1 Test1.javaYou may submit your solution more than once. Additional documentation about the
submit
command can be viewed by typing man submit
.
Enter a number:The entry has to be made on the same line as the prompt.
Here is a sample run (including the integer entered by the user):
Enter an integer: 5
Here is a sample run (including the output and input of the earlier phases as well):
Enter an integer: 5 The square root of 5 is 2.24
sqrt * sqrt
,
where sqrt
is the computed square root. When
printing this difference use 15 digits precision.
Here is a sample run (including the output and input of the earlier phases as well):
Enter an integer: 5 The square root of 5 is 2.24 Precision: 0.000000000000001