Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions