Question
Design a C++ Code program for Hunterville College that will display the projected tuition rate for the next 10 years. The current tuition is $15,000
Design a C++ Code program for Hunterville College that will display the projected tuition rate for the next 10 years. The current tuition is $15,000 per year and will increase by 4 percent next year, and every year after that the tuition increase is expected to be 0.5 more (thus 4%, then 4.5%, then 5%, etc).
The output should be:
Year Tuition
1 15,600.00
2 16,302.00
3 17,117.10
4 18,058.54
5 19,142.05
6 20,386.29
7 21,813.33
8 23,449.33
9 25,325.27
10 27,477.92
You will display your output in columns with column headings.
There will be no input to this program. You do not need to perform any error checking of user input for this program.
This is the pseudocode I have
Begin module main
// Declare variables
Declare Real tuition = 15000
Declare Real percentIncrease = 0.04 Declare Integer count
// Declare constants
Declare Real YEAR_INCREASE = 0.005
// Show projected tuition for the next 10 years
For year = 1 to 10 tuition = tuition + (tuition * INCREASE)
Display the year and the projected tuition
// Re-calculate the percent increase
percentIncrease = percentIncrease + YEAR_INCREASE
End main
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started