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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started