Question: Code in Python Please! Coding 2: Math (10 points) Calculate the value of an investment in the future. To calculate the value of the investment

Code in Python Please!

Code in Python Please! Coding 2: Math (10 points)

Coding 2: Math (10 points) Calculate the value of an investment in the future. To calculate the value of the investment you will need to calculate the account interest appropriately and will need to use the following formula amount = invest * e^(intRate * term). The means raise to the power. The formula uses a principal amount, which is the amount of money invested, an interest rate, and an amount of time (in years) as input and returns the value of the investment after that period of time. You should ask the user to enter each of the three input variables. Write the code that will find the amount of money in an account with the initial investment, interest rate, and number of years given by the variables above. Note that e is a constant; you may access it with math.e -- as a variable like any other after importing math. You will need the following variables: invest = 3000 # initial investment amount intRate = 0.03 term = 3 The output should look like with the value generated by the formula above: This investment will be worth $ 3282.52 after 3 years invested with an 0.03 interest rate

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 General Management Questions!