» 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

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter7: Using Methods
Section: Chapter Questions
Problem 1CP
icon
Related questions
Question

• 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.

» 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
Transcribed Image Text:» 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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 4 images

Blurred answer
Knowledge Booster
Math class and its different methods
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT