I'm new to this site so I'm sorry if I post this in the wrong section.
I'm taking a computer science course at my college where we are programming with psuedocode. I'm really not to good at this stuff. Last assignment was stuff on While Loops and I did well on that, but this assignment is very tricky for me and we are about to do a lot more stuff on this assignment so if somebody could help me write this code so I know what I'm doing for the rest of the time we are on this subject, I'd really appreciate it!
Here it is:
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 percent 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.
Edit: This is what I have figured out...Is it technically correct?
Module main ( )
Declare Integer total = 0
Declare Integer counter
Set tuition = 6000
For counter = 1 To 5
Set tuition = 2 * tuition + tuition * .02
End For
Display “The amount you pay in 5 years of tuition is “, tuition
End Module
I'm taking a computer science course at my college where we are programming with psuedocode. I'm really not to good at this stuff. Last assignment was stuff on While Loops and I did well on that, but this assignment is very tricky for me and we are about to do a lot more stuff on this assignment so if somebody could help me write this code so I know what I'm doing for the rest of the time we are on this subject, I'd really appreciate it!
Here it is:
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 percent 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.
Edit: This is what I have figured out...Is it technically correct?
Module main ( )
Declare Integer total = 0
Declare Integer counter
Set tuition = 6000
For counter = 1 To 5
Set tuition = 2 * tuition + tuition * .02
End For
Display “The amount you pay in 5 years of tuition is “, tuition
End Module
Last edited: