Question: Problem 2 . Write a program that prompts the user to enter the amount of money they want to deposit on the first of each
Problem Write a program that prompts the user to enter the amount of money they want to deposit on the first of each month. Interest for each month is calculated and paid based on the account balance at the end of the month. Using printf, print out the account balance to two decimal places. Assume the yearly interest rate is Please declare a constant for the monthly interest rate as follows in your program:
final double MONTHLYRATE ;
The following are how to calculate the account value at the end of each month:
monthValue: monthySaving MONTHLYRATE
monthValue: monthlyValue monthlySavingMONTHLYRATE
monthValue: monthlyValue monthlySavingMONTHLYRATE
and so on
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
