Test1B
and save your class in a file named
Test1B.java
.
submit 1020 Test1B Test1B.javaYou may submit your solution more than once. Additional documentation about the
submit
command can be viewed by typing man submit
.
The amount to be invested:The entry has to be made on the next line.
Here is a sample run (including the integer entered by the user):
The amount to be invested: 455
Interest
,
whose API can be found here.
Print the value using two digits of precision.
Here is a sample run (including the output and input of the earlier phases as well):
The amount to be invested: 455 The amount of interest: 15.72
Interest
.
Use two digits of precision.
Here is a sample run (including the output and input of the earlier phases as well):
The amount to be invested: 455 The amount of interest: 15.72 The amount of interest (based on the base rate): 15.72
Here is a sample run (including the output and input of the earlier phases as well):
The amount to be invested: 455 The amount of interest: 15.72 The amount of interest (based on the base rate): 15.72 Are the amounts the same? true
Here is another sample run (including the output and input of the earlier phases as well):
The amount to be invested: 1111 The amount of interest: 116.31 The amount of interest (based on the base rate): 38.40 Are the amounts the same? false