» The main method will o Ask the user for all input needed to call the computeFutureValue method. o Call computeFutureValue o Print the total interest amount earned by the investment at the end of the number of months entered by the user. Sample Program runnin Enter the investment amount 10000 Enter the annual interest rate 5.75 Enter the number of months 18 Monthly Interest and Investment value Value Month Interest $47.92 $48.15 $48.38 $48.61 $48.84 $10,047.92 $10,096.06 $10,144.44 $10,193.05 $10,241.89 2 4 5 $49.08 $49.31 $49.55 $49.78 $50.02 $50.26 $50.50 $50.75 $50.99 $51.23 $51.48 $51.73 $51.97 6 7 8 $10,290.97 $10,340.28 $10,389.82 $10,439.61 $10,489.63 $10,539.89 $10,590.40 $10,641.14 $10,692.13 $10,743.37 $10,794.84 $10,846.57 $10,898.54 10 12 13 14 15 16 17 18 The total interest earned in 12 months is $898.54
• Write a program in Eclipse that computes future investment value at a given interest rate for a specified number of months and prints the report shown in the sample output.
• Given the annual interest rate, the interest amount earned each month is computed using the formula:
Interest earned = investment amount * annual interest rate /1200 (=months * 100)
• Write a method, computeFutureValue, which receives the investment amount, annual interest rate and number of months as parameters and does the following:
o Prints the interest amount earned each month and the new value of the
investment (hint: use a loop).
o Returns the total interest amount earned after the number of months specified by the user.
Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 4 images