Question: Write a program in C++ that calculates compounding interest (futureValue = presentValue * (1 + interestRate)numberOfYears. To raise a number to a power, use the

Write a program in C++ that calculates compounding interest (futureValue = presentValue * (1 + interestRate)numberOfYears. To raise a number to a power, use the pow() command. To use pow() you must also include the cmath library in your program (#include ). The format is as follows: pow( , ) FutureValue = PresentValue * pow( (1 +InterestRate), Years ); If the interest rate is 12% and your present value is $1200, how long will it take to double your money (future value is greater than or equal to $2400)?

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!