Hello!
I am totally stuck. My assignment says, "At one college, the tuition for a full-time student is $6,000 per semester. It has been announced that the tuition will increase by 2% each year for the next five years. Design a program with a loop that displays the projected semester tuition amount for the next five years."
Now, I am using flowgorithm for this, which is kinda like pseudocode and flowcharts together. So far I have:
Display "This program calculates the projected semester tuition for the next five years. "
Declare Real tuition
Set tuition = 6000.00
Declare Integer counter
Set counter = 1
Declare Real tuitionNew
For counter = 1 to 5
Set tuitionNew = tuition 1.02
Display "Year ", counter, "tuition will be ", tuitionNew
End For
For some reason, each year's tuition turns out to equal 6120, which is not what I want! Could someone please help me and explain what's going on?
Thank you!