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, 22.06.2019 03:50
You are working as a security analyst in a company xyz that owns the whole subnet range of 23.0.0.0/8 and 192.168.0.0/8. while monitoring the data, you find a high number of outbound connections. you see that ip's owned by xyz (internal) and private ip's are communicating to a single public ip. therefore, the internal ip's are sending data to the public ip. after further analysis, you find out that this public ip is a blacklisted ip, and the internal communicating devices are compromised. what kind of attack does the above scenario depict?
Answers: 3
question
Computers and Technology, 22.06.2019 14:10
Dean wants a quick way to look up staff members by their staff id. in cell q3, nest the existing vlookup function in an iferror function. if the vlookup function returns an error result, the text “invalid staff id” should be displayed by the formula. (hint: you can test that this formula is working by changing the value in cell q2 to 0, but remember to set the value of cell q2 back to 1036 when the testing is complete.)
Answers: 3
question
Computers and Technology, 22.06.2019 20:40
Assume that there is a 4% rate of disk drive failure in a year. a. if all your computer data is stored on a hard disk drive with a copy stored on a second hard disk drive, what is the probability that during a year, you can avoid catastrophe with at least one working drive? b. if copies of all your computer data are stored on three independent hard disk drives, what is the probability that during a year, you can avoid catastrophe with at least one working drive?
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
In the context of an internet connection, llc stands for leased line connection liability limited company local loop complex local loop carrier
Answers: 1
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, 08.09.2020 18:01
question
Health, 08.09.2020 18:01
question
English, 08.09.2020 18:01
question
Mathematics, 08.09.2020 18:01
question
Mathematics, 08.09.2020 18:01
question
Mathematics, 08.09.2020 18:01
question
Mathematics, 08.09.2020 18:01
question
Mathematics, 08.09.2020 18:01
Questions on the website: 13722361