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 5 years. Design a program with a loop that displays the projected semesters tuition amount for the next five years.
1. //Declare Variables
2. Declare Real tuitionIncereas, semesters, count.
3. Constant Real TUITION=6000
4. //Assign values
5. //1% tuition increase per semester
6. set tuitionIncrease = 1.01
7. //15 semesters in 5 years
8. set semesters =15
9. Display "The tuition will increase 2% per year"
10. For count = 1 To semesters step 3
11. TUTION = TUTION*tutionIncrease
12. Display "semester", count. Tab, TUTION
13. End For
2 replies to this topic
#1
Posted 21 April 2011 - 08:44 PM
|
|
|
#2
Posted 22 April 2011 - 01:18 AM
Generally one would post on a forum to discuss or ask for help, you appear to be doing neither. Are you stuck on a certain part of this assignment and need help? What do you have so far and what language is it in?
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#3
Posted 22 April 2011 - 05:29 AM
Well. In what language you need to write the program? And try to get start like declaring variables. And we help ya. If you need to learn specific language try to read tutorials section.
Lost!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









