Question: Construct a C++ program that accepts an amount of money as a deposit and the number of years it has been deposited (years can have

Construct a C++ program that accepts an amount of money as a deposit and the number of years it has been deposited (years can have decimals). The program must determine the interest to be paid on the deposit based on the following schedule:

Time on Deposit Interest Rate

>= 5 years 4.5%

Less than 5 and >=4 years 4%

Less than 4 and >=3 years 3.5%

Less than 3 and >=2 years 2.5%

Less than 2 and >=1 years 2%

Less than 1 year 1.5%

The program must also compute the interest on the deposit using the formula: Interest = Deposit * IntRate * Years.

Furthermore it must also display the original deposit, the interest earned and the new Balance (with interest added to the deposit).

Please comment on every line of code.

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!