This is an Introduction to Programming Course
It is in Python 3.
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 $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. However, they all need to be formatted
to two decimal places. This question has been answered before, BUT
my teacher wants ours to look EXACTLY like his. So I am adding an
image of what it's "supposed" to look like. If I could get some
help I would really appreciate it. thank you.
Answer: here is the answer for your question :
PYTHON CODE:
fees=float(input("Enter the amount of fees for dirst
semester:"))
years=int(input("Enter the no of years:"))
for i in range(years):
fees=.03*fees+fees
print("School year: {} Semester :Fall Tuition : $
{:.2f}".format(i+1,fees))
print(" Semester :Spring Tuition : ${:.2f}".format(fees))
code snippet:

CODE OUTPUT:

------------------------------------------------------------------------------------------------------------------------------------------------
I hope this would help you out
If you have any doubt, you can provide comment /feedback below the answer
Thanks
This is an Introduction to Programming Course It is in Python 3. At one college, the...
Please use Python for this program
Random Number File Writer Write a program that writes a series of random numbers to a file. Each random number should be in the range 1 through 500. The program should let the user specify how many random numbers to put into the file. The name of the file to write to should be 'random.txt'. Submit the random.txt file generated by your program with the assignment. Sample program execution: Python 3.4.3 Shell Eile Edit...
Python, please help 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...
So I'm currently doing coding in Python. There's two parts and
we're supposed to use loops and nested loops to produce the
following outputs:
part A) 0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9 .... for ten times in total
part B) 0 0 0 0 0 0...
Help with a Python programming
problem, i got the first problem correct but cant seem to get this
one.
TASK 2: A retail company must file a monthly
sales tax report listing the total sales for the month and the
amount of state and federal sales tax collected.
The Company made $1000 in sales in month 1.
Sales increased by 10% from the previous month each month for 6
months except in month 5 where it increased only 7%.
(i.e....
need help with python program
The objectives of this lab assignment are as follows: . Input data from user Perform several different calculations Implement conditional logic in loop • Implement logic in functions Output information to user Skills Required To properly complete this assignment, you will need to apply the following skills: . Read string input from the console and convert input to required numeric data-types Understand how to use the Python Modulo Operator Understand the if / elif /...
3) Mary Taggart is a graduating college senior and she is considering the costs of going to medical school. Beginning next fall, Mary expects medical school tuition to run $45,000 for the first year and she estimates that tuition will increase by 6% each year. If Mary is able to invest her money in an account paying 8% interest per year, then the present value to Mary of four years of medical school tuition is closest to: (30PTS)
Sales Data Analysis
A company has multiple salespeople. Every month, they go on road
trips to sell the company's product. At the end of each month, the
total sales for each sales person, together with that salesperson's
ID and the month, is recorded in a file. At the end of each year,
the manager of the company wants to see an Annual Sales Report in
the format illustrated in the sample execution below. Your report
should look substantially similar to...
Don't understand why code isn't running
properly
Scottir.UnitB.py D/Python/Scottir UnitB.py (670 File Edit Format Run Options Window Help #Declare a variab i e and initialize it def displayInstructions (1angCode): 3tr . ENGLISHPROMPT = "Please enter your weight in poundョ >> " str.SPANISH PROMPT Por favor entre en su peso en libras > if langCode1: - print ("ENGLISH prompt) print ("SPANISH prompt") print ("Stop") elif langCode2 else: code input ( Enter code for instructions") num code weight = input ("Enter weight...
PYTHON! The Sieve of Eratosthenes THANKS FOR
HELP!
A prime integer is any integer greater than 1 that is evenly
divisible only by itself and 1. The Sieve of Eratosthenes is a
method of finding prime numbers. It operates as follows:
Create a list with all elements initialized to 1 (true). List
elements with prime indexes will remain 1. All other elements will
eventually be set to zero.
Starting with list element 2, every time a list element is found...
How to ues Python dictionary, enter the student information and
get the following classification.
The student id is "key" and the subject name and grade is
"value" to form the following form.
This is my code, I don't know how to use the
dictionary..
student_list = []
a = input("Student information 1: ")
b = input("Student information 2: ")
student_list.append(a[])
student_list.append(b)
print(student_list)
print(" {}".format([a] + [b]));
04차시 실습3을 활용하여, 학생의 학번을 key로, 학과, 이름, 과제성적 을 value로 하는 딕셔너리 구성...