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
Get step-by-step solutions from verified subject matter experts
