Answer:
In Python:
tuition = 7180
year = 2019
rate = 0.035
for i in range(2019,2027):
print(str(year)+": "+str(round(tuition,2)))
tuition = tuition * (1 + rate)
year = year + 1
Explanation:
This initializes the tuition to 7180
tuition = 7180
This initializes the year to 2019
year = 2019
This initializes the rate to 3.5%
rate = 0.035
This iterates through years 2019 to 2026
for i in range(2019,2027):
This prints the year and tuition
print(str(year)+": "+str(round(tuition,2)))
This calculates the tuition
tuition = tuition * (1 + rate)
This increments year by 1
year = year + 1