calah1193
04.08.2021 •
Computers and Technology
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·$8240.0.
In·2·years,·the·tuition·will·be·$8487.2.
In·3·years,·the·tuition·will·be·$8741.816.
In·4·years,·the·tuition·will·be·$9004.07048.
In·5·years,·the·tuition·will·be·$9274.192594400001.
Your Code's Actual Result:
In·1·year,·the·tuition·will·be·$·8240.0.
In·2·year,·the·tuition·will·be·$·8487.2.
In·3·year,·the·tuition·will·be·$·8741.816.
In·4·year,·the·tuition·will·be·$·9004.07048.
In·5·year,·the·tuition·will·be·$·9274.1925944.
Solved
Show answers
More tips
- H Health and Medicine Simple and Effective: How to Get Rid of Cracked Heels...
- L Leisure and Entertainment What to Bring on a Hike? Essential Items to Pack for a Safe and Enjoyable Adventure...
- L Leisure and Entertainment Couchsurfing: A New Way to Travel...
- S Style and Beauty Autotanning: Harmful or Safe?...
- F Food and Cooking 10 Ideas for a Wedding Anniversary Gift...
- H Health and Medicine How to Reduce Sweating in the Heat and Beyond: Say Goodbye to Excessive Sweat...
- F Food and Cooking Do Aphrodisiacs Really Work? Separating Fact from Fiction...
- H Health and Medicine What to Eat to Lose Weight?...
- A Animals and plants How to Teach Your Parrot to Talk?...
- H Health and Medicine How to Improve Your Posture?...
Answers on questions: Computers and Technology
- C Computers and Technology What’s unique about windows 8 compared to earlier windows...
- C Computers and Technology The jailbreak property that, if the user turns the device off and back on, the device will start up completely, and the kernel will be patched without the help of a computer...
- M Mathematics Plz plz i need help i do not get it plz plz for all questions...
- M Mathematics How long is 25% of 60 minutes? Explain your answer. How long is 75% of 60 minutes? Explain your answer....
- H History explain the realtionship that existed between the colonists and England prior to the French and Indian war?...
- H History Which tool would you choose to create a storyboard, and why?...
- M Mathematics What is a coefficient...
- M Mathematics PLEASE HELP If a triangle has an angle measuring 23° and an angle measuring 46°, find the third angle....
- E English IREADY answer asap pls How did Myers early poems and stories serve as an “entree into a much more comfortable world ? 1) trust his abilities , solve new problems, hear other...
- M Mathematics 5. (8+ 3i) + (-6-12) Simplify the expression...
Ответ:
Try :
Semester_Fee = 8000.0
for x in range(1, 6):
import decimal
Semester_Fee = Semester_Fee + Semester_Fee *(3/(100*1.0))
if x==1:
print("In",x,"year, the tuition will be" ,'$', Semester_Fee, end='.')
else:
print("In",x,"years, the tuition will be" ,'$', Semester_Fee, end='.')
Ответ:
do it got answer
Explanation:
do it got answer