In: Computer Science
10. Tuition Increase
At one college, the tuition for a full-time student is $8000 per semester. It has1 been announced that the tuition will increase by 3 percent each year for the next 5 years. Write a program with a loop that displays the projected semester tuition amount for the next 5 years.
PYTHON CODE:
print('* * * Semester Fees for the next 5 years * * *\n')
# variable to store the initial semester fee
semester_fee = 8000
# loop to print the semester for the 5 years
for i in range(5):
# incrementing the semester fee by 3
percentage every year
semester_fee = semester_fee + semester_fee *
(3/100)
# printing the fees
print('Semester fee for the year %d: $%.2f' %
(i+1,semester_fee))
SCREENSHOT FOR CODING:
SCREENSHOT FOR OUTPUT: