dayanaratorres6121 dayanaratorres6121
  • 15-07-2020
  • Computers and Technology
contestada

Design a program for Hunterville College. The current tuition is $20,000 per year, and tuition is expected to increase by 3 percent each year. Display the tuition each year for the next 10 years.

Respuesta :

frknkrtrn
frknkrtrn frknkrtrn
  • 20-07-2020

Answer:

tuition = 20000

for i in range(1, 11):

   tuition += tuition*0.03

   print("The tuition will be " + str(tuition) + " in " + str(i) + " year(s)")

Explanation:

*The code is in Python.

Set the tuition as 20000

Create a for loop that iterates 10 times

Inside the loop, add the 3 percent of the tuition to the tuition. Print the tuition and the year.

Answer Link

Otras preguntas

what is the LCM of 51 and 18?
A unit for measuring frequency is the A. watt. B. hertz. C. ampere. D. ohm.
what do the organisms in each trophic level eat
Hieroglyphics were used by the _____ civilization. Indus Valley Mycenaean Egyptian Mesopotamian
True or False? The United Nations is the largest international organization in the world.
In the fourteenth century, Europe's population was devastated by crop failure and _____. the Black Death foreign invasions inflation religious persecution
what is 0.947 written in expanded form
Joan has a cafe. Each day she bakes 24 muffins.She gives away 3 muffins and sells the rest.Each day,she also bakes 36 bagels. She gives away 4 and sells the res
A group of physics teachers is taking some time off for a little putt-putt golf. The 15th hold has a large metal rim that putters must use to guide their ball t
How do you Write 0.0034 as a percent