Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.

Your programs output must exactly match the output shown in the sample run below. Notice the wording of the messages and the placement of spaces and punctuation. Also, make sure that the tuition amounts are rounded to two decimal places.

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.

When I type in my code to run it, I get the years 1-4 correct but for year 5, I can only reach the last 4 in the value. I cannot seem to get the 00001 at the end of the value to be incorporated to the answer. Can someone help me out, Thanks!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

Students also viewed these Databases questions