Still very new to Python programming and learning the basics, any help is greatly appreciated.
#Define Variables
# x= starting tuition
# y= tuition increae per year
# z = new tuition
#List known Variables
cost = int(25000)
increase = float(.025)
#Calculate the tuiton increase
tuition = cost * increase
#Calculate the cost increase over 5 years
#Initialize accumulator for test scores.
total = int(25000)
for x in range(5):
print('$', format(total+tuition, ',.2f'), sep='')
Output should be similar to: Year 1: $25,000 Year 2: $25,625 Year 3: $26,276.63 Year 4: $26,933.54 Year 5: $27,606.88
I am having trouble writing the script so that there is a 2% increase added onto $25,000, then 2% onto $25,625, then 2% increase to equal $26,276.63 etc. etc. for 5 years.
Thank you for the help!