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 made trade difficult for the United States in 1790, when Hamilton was secretary of the treasury?
Which word correctly completes the sentence? After the election, a computer tallied the __________ votes. A. peoples B. peoples' C. people's
What is the area of a square whose perimeter is 12?
Three more Questions plz answer here are the rest: 2. Mark the statement if it describes a characteristic that pulled the Greek city-states together. A.nationa
Can you show me how to do Thisss.
Because DNA is unique, DNA (blank) can identify the unique patterns in a individual's DNA and help solve crimes.
Three of the following were causes of the unrest that helped to pave the way for the Protestant Reformation. Which was NOT? A) Some Renaissance popes had been i
Select the correct use of the missing word in the sentence below. ____ going to be a bumpy ride! (10 points) Its' It Its It's
which influential work about the Vietnam War was written by Tim O'Brien?
How do you solve quadratic equations using the quadratic formula