Question: 6. Functions: Future investment value: Write a function that takes in an investment amount, the annual interest rate in percentage term, and the number of

 6. Functions: Future investment value: Write a function that takes in

6. Functions: Future investment value: Write a function that takes in an investment amount, the annual interest rate in percentage term, and the number of years, and returns the future investment value using the following formula: future InvestmentValue = investment Amount (1 + monthly Interest Rate)numberof Months For example >>print (investment_val (1000,4.25,1)) 1043.34 >>print (investment_val (1500,3.25,2)) 1600.6 >>print (investment_val (1000,2.25,0.5)) 1011.3 >>print (investment_val (2000,4.25,3)) 2271.46 Round the answer to two decimal places Write a test program that keys in the investment amount, annual interest rate, and the number of years. Here is a sample run Enter investment amount: 1000 Enter annual interest rate (%) : 4.25 Enter number of years: 1 Accumulated value is 1043.33

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!