# Arup Guha
# 12/3/2024
# Some code to verify result for COT 3100 Final Exam Question #10

# Constants in the question.
ANNUAL = 1000
RATE = 0.06

# How I labeled my years and money.
year = 0
money = ANNUAL

# I'll just run it for 40 years..
for i in range(40):

    # Show the # of years after first investment and money.
    print(year, money)

    # Move forward one year (so add interest to current, then new investment
    # then update year.
    money = money*(1+RATE)
    money += ANNUAL
    year += 1
