Question: ( Financial application: compound value ) Suppose you save $ 1 0 0 each month into a savings account with an annual interest rate of

(Financial application: compound value) Suppose you save $100 each month into a savings account with an annual interest rate of 5%. Thus, the monthly interest rate is 0.05/12=0.00417. After the first month, the value in the account becomes
100*(1+0.00417)=100.417
After the second month, the value in the account becomes
(100+100.417)*(1+0.00417)=201.252
After the third month, the value in the account becomes
(100+201.252)*(1+0.00417)=302.507
and so on.
Write a program that prompts the user to enter a monthly saving amount and dis-plays the account value after the sixth month.
--We are given the interest rate (5%) and the number of months (6). The third variable is the $ amount which will be input by the user.
P--rogram logic:
Get monthly savings amount from the user
Calculate monthly interest: 1+(.05/12)
balance = monthly interest * monthly savings amount (this is the balance after
first month)
balance =(balance + month savings amount)* monthly interest (this is the
balance after the second month)
balance =(balance + month savings amount)* monthly interest (this is the
balance after the third month)
{Repeat until you have 6 months}
Print out the balance
REMEMBER: MAKE IT JAVA

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!