Question: The original program was def main(): Print(this program calculates the future value) Print(of a ten year investment ) Principal =eval(input(enter the initial principal: )) Apr=

The original program was
def main():
Print(this program calculates the future value)
Print(of a ten year investment )
Principal =eval(input(enter the initial principal: ))
Apr= eval(input(enter the annual interest rate: ))
For i in range(10):
Principal=principal *(1+apr)
Print(the value in 10 years is:, principal)
Main()
 The original program was def main(): Print(this program calculates the future

12. Write an improved version of the future value program from Chapter 2, Your program will prompt the user for the amount of the investment, the interest rate, and the number of years of the investment. The program will then output a nicely formatted table that tracks the value of the investment year by year. Your output might look something like this annualized Year Value 0 $2000.00 1 $2200.00 2 $2420.00 3 $2662.00 4 $2928.20 5 $3221.02 6 $3542.12 $3897.43

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!