Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions