Question: Can someone help me with my code? I need the code to be in C Program. Compound Interest 1. Write a function, compound_interest with three

Can someone help me with my code? I need the code to be in C Program.Can someone help me with my code? I need the code tobe in C Program. Compound Interest 1. Write a function, compound_interest with

Compound Interest 1. Write a function, compound_interest with three double parameters to compute the amount of money, A, that you will have in n years if you invest P dollars now at annual rate i. The formula is A = P(1 + i)n 2. Write a main program that will permit the user to enter P, i, and n. Call your function to compute A. Your main program should echo the inputs and print the final dollar amount. Hint: You need to check the following: P, the investment amount, must be greater than 0 i, the annual interest rate, must be greater than 0 and less than or equal to 15 n, the number of years, must be greater than 0 Sample Output Future Value of an Investment Dollar amount to invest: 100 Percentage interest rate: 6.8 Years of investment: 10 If you invest $100 at 6.8% Its value in 10 years will be $193.069

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!