Question

In: Computer Science

At one college, the tuition for a full-time student is $8,000 per semester. It has been...

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.)


Sample Run

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.↵

Solutions

Expert Solution

I have done this program in Python. Please ask me if need any modification or changes.

CODE: Python Programming Language

def main():
    # Initialize the amount with 8000
    amount = 8000.0
    # Use for loop to find the amount for each year after increasing the tution fee by 3 percent
    for i in range(1, 6):
        # increement the amount by 3 percent
        amount += amount * 0.03
        # Display the tution fee for each year
        if i is 1:
            print('In ' + str(i) + ' year, the tuition will be $' + str(amount)   + '.')
        else:
            print('In ' + str(i) + ' years, the tuition will be $' + str(amount)   + '.')
main()

===========================================================================

SCREENSHOT OF THE CODE:

===========================================================================

OUTPUT:

Thank you. Please ask me if you have any doubt.


Related Solutions

10. Tuition Increase At one college, the tuition for a full-time student is $8000 per semester....
10. Tuition Increase At one college, the tuition for a full-time student is $8000 per semester. It has1 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.
Margo attends college and spends $10,000 for one year's tuition. If she worked a full time...
Margo attends college and spends $10,000 for one year's tuition. If she worked a full time job instead of going to school, she would earn $20,000. To an economist, Margo’s opportunity cost for one year in college is Group of answer choices a.$120,000 b.$30,000 c.$10,000 d.$20,000
Using Python 3 In 2017, the tuition for a full time student in a university is...
Using Python 3 In 2017, the tuition for a full time student in a university is $6,450 per year. The tuition will be going up for the next 7 years at a rate of 3.5% per year. Write your program using a loop that displays the projected year tuition for the next 7 years. You should display the actual year (2018, 2019, through 2024) and the tuition amount per year.
Student tuition at Boehring University is $160 per semester credit hour. The state supplements school revenue...
Student tuition at Boehring University is $160 per semester credit hour. The state supplements school revenue by $100 per semester credit hour. Average class size for a typical 3 -credit course is 50 students. Labor costs are $4 comma 500 per class, materials costs are $18 per student per class, and overhead costs are $24 comma 000 per class. The multifactor productivity ratio currently is 1.33 and the labor productivity ratio is $174.11 per hour if the instructors work on...
Sam is a 25-year-old college student. He works full time in addition to taking a full...
Sam is a 25-year-old college student. He works full time in addition to taking a full course load. He usually eats fast-food cheeseburgers and fries in his car for lunch and a take-out pepperoni pizza right before bed. Sam has noticed that he has put on some extra weight in the past few months, and his clothes are fitting very tight. He also has been experiencing severe heartburn several nights a week. Come up with some changes that Sam can...
Your son has been accepted into college. This college guarantees that your​ son's tuition will not...
Your son has been accepted into college. This college guarantees that your​ son's tuition will not increase for the four years he attends college. The first $11,000 tuition payment is due in six months. After​ that, the same payment is due every six months until you have made a total of eight payments. The college offers a bank account that allows you to withdraw money every six months and has a fixed APR of 6% (semiannual) guaranteed to remain the...
Jamie Lee Jackson, age 24, now a busy full-time college student and part-time bakery clerk, has...
Jamie Lee Jackson, age 24, now a busy full-time college student and part-time bakery clerk, has been trying to organize all of her priorities, including her budget. She has been wondering if she is allocating enough of her income towards savings, which includes accumulating enough money towards the $7,000 down payment she needs to begin her dream of opening a cupcake café. Jamie Lee has been making regular deposits to both her regular, as well as her emergency savings account....
A student at a junior college conducted a survey of 20 randomly selected​ full-time students to...
A student at a junior college conducted a survey of 20 randomly selected​ full-time students to determine the relation between the number of hours of video game playing each​ week, x, and​ grade-point average, y. She found that a linear relation exists between the two variables. The​ least-squares regression line that describes this relation is ModifyingAbove y with caret equals negative 0.0559 x plus 2.9289. (a) Predict the​ grade-point average of a student who plays video games 8 hours per...
A student at a junior college conducted a survey of 20 randomly selected? full-time students to...
A student at a junior college conducted a survey of 20 randomly selected? full-time students to determine the relation between the number of hours of video game playing each? week, x, and? grade-point average, y. She found that a linear relation exists between the two variables. The? least-squares regression line that describes this relation is y = -0.0503x + 2.9381. (a) Predict the grade-point average of a student who plays video games 8 hours per week. The predicted grade-point average...
A student at a junior college conducted a survey of 20 randomly selected​ full-time students to...
A student at a junior college conducted a survey of 20 randomly selected​ full-time students to determine the relation between the number of hours of video game playing each​ week, x, and​ grade-point average, y. She found that a linear relation exists between the two variables. The​ least-squares regression line that describes this relation is ModifyingAbove y with caret equals negative 0.0592 x plus 2.9446. ​(a) Predict the​ grade-point average of a student who plays video games 8 hours per...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT