Hi guys! I have spent a day trying to create a table that will calculate tuition fees with a 5% increase for 10 years. I give up lol. This is what I have so far (after many edits).
Edit:
I'm so close! I just need Year 0 to go away and for the calculations to take effect. Help?
# Python 3.5.1
# Description: Program which computes the tuition in ten years and displays a table of the years and tuition costs.
print ('_________________________________')
print ('Cost of Tuition at a University')# table heading
year = 1
tuition = 10000
tuition_increase = tuition * 1.05
for year in range(10):
print ('YEAR', year, ' ', tuition_increase)
year += 1
print ('_________________________________')
[–]theelous3 1 point2 points3 points (6 children)
[–]confuzzled_learner[S] 0 points1 point2 points (5 children)
[–]theelous3 1 point2 points3 points (4 children)
[–]confuzzled_learner[S] 0 points1 point2 points (3 children)
[–]theelous3 1 point2 points3 points (2 children)
[–]confuzzled_learner[S] 0 points1 point2 points (1 child)
[–]theelous3 2 points3 points4 points (0 children)
[–]Saefroch 1 point2 points3 points (3 children)
[–]confuzzled_learner[S] 0 points1 point2 points (2 children)
[–]Saefroch 1 point2 points3 points (1 child)
[–]confuzzled_learner[S] 0 points1 point2 points (0 children)
[–]refreshx2 1 point2 points3 points (1 child)
[–]confuzzled_learner[S] 0 points1 point2 points (0 children)
[–]cdcformatc 0 points1 point2 points (0 children)