Question: Python 3.0 assignment: Write a program that calculates the total tuition a student must pay for a four-year program. The user will enter their starting

Python 3.0 assignment: Write a program that calculates the total tuition a student must pay for a four-year program. The user will enter their starting tuition for year one. For example, the user types 7500; save this into a variable. The user also enters the annual increase of the tuition in a fraction format. For example, 0.05 (for 5% increase), save this into another variable. This increase is applied for years 2, 3 and 4. The program then outputs the tuition for each year, and the total tuition for all four years.

The tuition at year 2 for example = (tuition of year 1* increase) + (tuition of year 1). The tuition for years 3 and 4 is calculated in a similar fashion based on years 2 and 3 respectively.

Use variables to get the input, and other variables to hold the calculation. For example, use a variable to contain the tuition of year 2, and another variable for the tuition of year 3 and so on.

Show the tuition of each year and the total tuition at the end.

Do not use loops. It is important to: use variables to get input, think of the proper data type for each input, and produce the proper output.

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!