# futval.py # A program to compute the value of an investment # carried 10 years into the future # Name: Your name goes here # Date: Today's date goes here # Assignment: Lab 01 def main(): print ("This program calculates the future value") print ("of a 10 year investment.") principal = float(input("Enter the initial principal: ")) apr = float(input("Enter the annualized interest rate: ")) for i in range(10): principal = principal * (1.0 + apr) print ("The value in 10 years is:", principal) main()