Question: For this program you will be looking at future tuition at your university. In 2017, the tuition for a full time student is $6,450 per

For this program you will be looking at future tuition at your university.

In 2017, the tuition for a full time student is $6,450 per semester. The tuition will be going up for the next 7 years at a rate of 3.5% per year. Write your program using a loop that displays the projected semester tuition for the next 7 years. You should display the actual year (2018, 2019, through 2024) and the tuition amount per semester for that year.

#variable declaration tutionfee=6450.00; rate=3.5; print(tutionfee); #displaying initial tution fee for the year=2018

#loop for the next 7 years for loop in range(2018,2024): ratePerYear = (rate/100)*tutionfee;

#calculate rate per year tutionfee = tutionfee+ratePerYear; #add rate per year to the tutionfee

print('Year' + str(loop) +' semester fee=' + str(tutionfee)); #displaying output

I have the code but somewhere I messed up. This only shows year 2023, I need list starting for year 2018 and ending 2024

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!