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, 21.06.2019 21:40
Write c function that can replace all the positive elements to 0 and negative to 1 in undefined length one-dimensional array. test your program in the main program by defining one-dimensional array of 6 elements
Answers: 1
question
Computers and Technology, 22.06.2019 11:10
Which are not examples of chronic or persistent stress? moving
Answers: 1
question
Computers and Technology, 22.06.2019 13:30
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
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, 10.12.2020 21:30
question
History, 10.12.2020 21:30
question
Mathematics, 10.12.2020 21:30
question
Computers and Technology, 10.12.2020 21:30
question
Mathematics, 10.12.2020 21:30
question
Social Studies, 10.12.2020 21:30
question
English, 10.12.2020 21:30
question
Chemistry, 10.12.2020 21:30
Questions on the website: 13722360