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

why did Hitler feel justified in taking over Austria and the Sudetenland?
what is the difference in the charges on a balloon rubbed in your hair and a glass  rod rubbed with silk? why?
The area of Alicia's garden is 81 square feet. What are the dimensions of her garden ?
The angular speed of a propeller on a wind generator is 10.3 revolutions per minute. Express this angular speed in radians per minute.
the pet store sells bags of pet food. there are 4 bags of cat food. one sixth of the bags of food are bags of cat food. how many bags of pet food does the pet s
Consider the equation 5x+7=22 What two operations are represented in this equation?? How would you "undo" each of those operations Which operation should you "
How can I change 19/4 in a mixed number
What is 9/20 as a decimal and percent?
How are atoms in a compound held together?
Steve has 120 feet of fence to make a rectangular kennel for his dogs. He will use his house as one side. Write an algebraic expression for the kennel's length.