Question: Write a function futval(principal, apr, numyears) that returns the future value of principal dollars invested for numyears at an annual interest rate of apr. Then

Write a function futval(principal, apr, numyears) that returns the future value of principal dollars invested for numyears at an annual interest rate of apr. Then use this function to complete a program that allows a user to compare two investments at differing interest rates. The user will enter the amount to invest (principal), the number of years of the investment, and two different interest rates. The program should then report the difference in future values between the two investments.

  

Step by Step Solution

3.43 Rating (150 Votes )

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 Programming Questions!