Programming Exercise 6

  < Previous  Next >

Due Date

See the calendar for due date.

Assignment:

It is estimated that tuition will increase by 5% each year for the next 5 years. Write a program that requests the current full-time tuition amount and then displays the projected semester tuition amount for the next 5 years.

Examples

The following are examples of correct execution (with the text in bold being the input from the user):
Please enter the current full-time tuition: 5000
      
The current tuition is $5,000.00
In 1 year, the tuition will be $5,250.00
In 2 years, the tuition will be $5,512.50
In 3 years, the tuition will be $5,788.12
In 4 years, the tuition will be $6,077.53
In 5 years, the tuition will be $6,381.41
Please enter the current full-time tuition: 8404

The current tuition is $8,404.00
In 1 year, the tuition will be $ 8,824.20
In 2 years, the tuition will be $ 9,265.41
In 3 years, the tuition will be $ 9,728.68
In 4 years, the tuition will be $ 10,215.11
In 5 years, the tuition will be $ 10,725.87

Submission

Submit your python script using the handin program. For handin, for this lab, type the following in a terminal window exactly as it appears:
handin  pe6  pe6.py
To verify your submission, type the following in a terminal window:
handin  pe6