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 $ each month into a savings account with an annual interest rate of Thus, the monthly interest rate is After the first month, the value in the account becomes
After the second month, the value in the account becomes
After the third month, the value in the account becomes
and so on
Write a program that prompts the user to enter a monthly saving amount and displays the account value after the sixth month.
We are given the interest rate and the number of months The third variable is the $ amount which will be input by the user.
Program logic:
Get monthly savings amount from the user
Calculate monthly interest:
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 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
