subject

PYTHON PROGRAMMING: 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 percent each year for the next 5 years. Write a program with a loop that displays the projected semester tuition amount for the next 5 years. The program should print out the result in the form:
In 1 year, the tuition will be $8002.3.
In 2 years, the tuition will be $8103.2.In 3 years, …
In 4 years, …
In 5 years, …
(If, for example, the tuition would cost 8002.3 dollars in one year, etc.)
HERE'S WHAT I TRIED (wont show indentations here):
Semester_Fee = 8000.0
for x in range(1, 6):
Semester_Fee = Semester_Fee + (Semester_Fee *(3/(100*1.0)))
print("In",x,"year, the tuition will be" ,'$', Semester_Fee, end='.n')
BUT HERE'S WHAT IT SHOWED ME:
Expected Result:
In·1·year,·the·tuition·will·be·$824 0.0.
In·2·years,·the·tuition·will·be·$84 87.2.
In·3·years,·the·tuition·will·be·$87 41.816.
In·4·years,·the·tuition·will·be·$90 04.07048.
In·5·years,·the·tuition·will·be·$92 74.192594400001.
Your Code's Actual Result:
In·1·year,·the·tuition·will·be·$·82 40.0.
In·2·year,·the·tuition·will·be·$·84 87.2.
In·3·year,·the·tuition·will·be·$·87 41.816.
In·4·year,·the·tuition·will·be·$·90 04.07048.
In·5·year,·the·tuition·will·be·$·92 74.1925944.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:30
Three out of five seniors remain undecided about a college major at the end of their senior year.
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
1. for which of the following are you not required to signal beforehand? a. changing lanes b. speeding up c. stopping
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
Which of the following processes applications across multiple computing devices? a. functional application b. distributed system c. workgroup information silo d. information silo
Answers: 3
You know the right answer?
PYTHON PROGRAMMING: At one college, the tuition for a full-time student is $8,000 per semester. It...
Questions
question
Mathematics, 19.12.2019 11:31
question
Chemistry, 19.12.2019 11:31
question
Mathematics, 19.12.2019 11:31
question
Mathematics, 19.12.2019 11:31
question
Mathematics, 19.12.2019 11:31