Question: Write a program in c + + that reads the following from the user: 1 - The principal investement ( for example 1 5 0

Write a program in c++that reads the following from the user:
1- The principal investement (for example 15000) P
2- The interest rate accrued r (0.06 for 6% for instance)
3- The number of periods of compounding n (1 if yearly, 2 if every 6 months 4 if every 3 months and 12 if every month)
4- The udration in years t (3 years for instance)
5- Compute A the value of the investment after t time using the formula
A = P(1+ r/n)^(nt)
Display the result.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve the problem we need to write a C program that computes the future value of an investment af... View full answer

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!