Using python,

At one college, the tuition for a full-time student is $8,000 per semester.
It has been announced that the tuition will increase by 3% each year for the next five years.
Write a program with a loop that displays the projected semester tuition amount for the next five years as:

Respuesta :

Answer:

Explanation:

We can use for-loop in python to calculate the tuition amount in the next 5 years. If the tuition is increasing 3% each year, in each loop we can multiply the amount by 1.03

tuition = 8000

for year in range(1,6):

    tuition *= 1.03

    print("The tuition amount after " + str(year) + " year(s) is $" + str(tuition))

In this exercise we have to use the knowledge of computational language in python to write the following code:

The code can be found in the attached image.

That way, to find it more easily we have the code like:

tuition = 8000

for year in range(1,6):

   tuition *= 1.03

   print("The tuition amount after " + str(year) + " year(s) is $" + str(tuition))

See more about python at brainly.com/question/26104476

Ver imagen lhmarianateixeira