A good answer might be:The completed program is given below. | |
Complete ProgramIn completing the program, be sure that rate is correct. The user is supposed to enter percent interest, for example 6 for six percent. The program needs a decimal fraction such as 0.06 to work correctly.
Here is an example of a user dialog with the program: C:\users\default\JavaLessons\chap16>java dollarsAfterForty Enter the interest rate in percent: 11 After 40 years at 11.0 percent interest you will have 646826.9337201559 dollars C:\users\default\JavaLessons\chap16>java dollarsAfterForty Enter the interest rate in percent: 12 After 40 years at 12.0 percent interest you will have 860142.3907860613 dollars C:\users\default\JavaLessons\chap16>java dollarsAfterForty Enter the interest rate in percent: 13 After 40 years at 13.0 percent interest you will have 1146485.7949682677 dollars | |
QUESTION 7:In the above dialog, the user keeps trying interest rates until one is found where the account reaches the million dollar goal. In terms of computer programming, what is the user doing? Click Here after you have answered the question |