Question: Write C++ program for a compound interest calculator. Ask the user for dep = initial deposit r = interest rate expressed as a fraction (example:

Write C++ program for a compound interest calculator.

Ask the user for dep = initial deposit r = interest rate expressed as a fraction (example: .06) t = years If we assume that the money is compounded on a monthly basis, the formula is: double final = dep * pow( 1 + r/12.0 , 12.0*t ); Then display the final amount. To earn full credit, comment your code well.

Supposedly, with a deposit of 1000, and 5% interest (0.05), for 10 years, you wind up with a balance of 1647.01. See if your program equals that! If not, see if you can find a flaw in the expression.

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!