RESIDENCY_COSTinState = {
"I": 10000,
outState "O":= 24000,
profGrad "G":= 40000,
years = }
[]
cost_of_tuitiontuitionIncrease = None[]
while True:
residency
i = raw_input('Please input your type of residency, I for in-state, O for out-of-state, and G for graduate: ')
if i == try'I':
cost_of_tuitioncostOfTuition = RESIDENCY_COST[residency]
breakinState
elif i except== ValueError'O':
print ('Please enter I, G orcostOfTuition O= ONLY.')outState
elif i ==
'G':
years = []
tuition_increase = []
academic_yearcostOfTuition = []profGrad
academic_year_inc
x = []
0
forwhile _x in!= range(5):
intMath = cost_of_tuitioncostOfTuition * 0.03
tuition_increasetuitionIncrease.append(intMath)
fnlMath = intMath + cost_of_tuitioncostOfTuition
years.append(fnlMath)
cost_of_tuitioncostOfTuition = fnlMath
academic_yearx += 1
academicYear1 = "${:,.append2f}".format(years[0])
academicYear2 = "${:,.2f}".format(fnlMathyears[1])
academicYear3 = "${:,.2f}".format(years[2])
academicYear4 = "${:,.2f}".format(years[3])
academicYear5 = "${:,.2f}".format(years[4])
academicYear1Inc1 = academic_year_inc"${:,.append2f}".format(tuitionIncrease[0])
academicYear1Inc2 = "${:,.2f}".format(intMathtuitionIncrease[1])
academicYear1Inc3 = "${:,.2f}".format(tuitionIncrease[2])
academicYear1Inc4 = "${:,.2f}".format(tuitionIncrease[3])
academicYear1Inc5 = "${:,.2f}".format(tuitionIncrease[4])
total_tuition_increaseSumtotalTuitionIncreaseSum = sum(tuition_increasetuitionIncrease)
total_tuition_increasetotalTuitionIncrease = "${:,.2f}".format(total_tuition_increaseSumtotalTuitionIncreaseSum)
4
print('UNDERGRADUATE TUITION FOR THE NEXT FIVE YEARS ')
print('ACADEMIC YEAR TUITION INCREASE ')
print('------------- ------------ -------- ')
for i, yearprint('2016-17 in enumerate(range(16, 21)):
print('{}-{} ' + academicYear1 + ' {} ' + academicYear1Inc1) {}'.format
print(year'2017-18 + 2000, year + 1,
' + academicYear2 + ' ' + academicYear1Inc2)
print('2018-19 ' + academicYear3 + ' ' + academic_year[i],academicYear1Inc3)
print('2019-20 ' + academicYear4 + ' ' + academicYear1Inc4)
print('2020-21 ' + academicYear5 + ' academic_year_inc[i]) ' + academicYear1Inc5)
print('TOTAL TUITION INCREASE ' + total_tuition_increasetotalTuitionIncrease)