Design a program for Jones College. The current tuition is $12,000 per year, and tuition is expected to increase by 5 percent each year. Display the tuition amount for each year over the next five years (use a looping structure) and also the total tuition at the end of the program. Hint: You will need to use two assignment statements for calculating purposes. One will be an accumulating total assignment statement.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.1: Assignment Operations
Problem 9E: (Civil eng.) Write an assignment statement to determine the maximum bending moment, M, of a beam,...
icon
Related questions
Question

PLEASE USE FLOWGORITHM.

Design a program for Jones College. The current tuition is $12,000 per year, and tuition is expected to increase by 5 percent each year. Display the tuition amount for each year over the next five years (use a looping structure) and also the total tuition at the end of the program. Hint: You will need to use two assignment statements for calculating purposes. One will be an accumulating total assignment statement.


Expert Solution
Step 1: Algorithm
  1. Initialize the variables tuition with the initial tuition amount of $12,000 and totalTuition as 0.
  2. Display a header for the "Year" and a line of dashes to separate the output.
  3. Use a loop to iterate from year = 1 to 5 (inclusive).
    • Display the current year number.
    • Calculate and display the tuition amount for the current year.
    • Add the current year's tuition to the totalTuition.
    • Calculate the tuition for the next year using a 5% increase.
  4. After the loop, display the "Total tuition" along with the accumulated totalTuition.
  5. End the program.
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
Knowledge Booster
Structure chart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage