Jump to content

Pascal Loops... I'm Stuck

Anyone want to help me with this question? I have to make a loop that calculates tuition increases over 5 years.
 

Question 2: Tuition Increase

At one college, the tuition for a full-time student is $12000 for the first year. 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 year tuition amount for the next five years.


I'm so lost... lol

Link to comment
https://linustechtips.com/topic/58083-pascal-loops-im-stuck/
Share on other sites

Link to post
Share on other sites

Well, you first get the first and base number which happens to be 12000. Now at a time scale of a year, the number would add on 2% of the original number, get it? So 1st year is 12000, second year is 12000 + 2%, then 3rd year is 12000 + 4%

 

Simple math, but on code, you'll need to find that specific function.

Andres "Bluejay" Alejandro Montefusco - The Forums Favorite Bird!!!

Top Clock: 7.889 Ghz Cooled by: Liquid Helium   

#ChocolateRAM #OatmealFans #ScratchItHarder #WorstcardBestoverclocker #CrazySexStories #SchnitzelQuest TS3 SERVER

Link to comment
https://linustechtips.com/topic/58083-pascal-loops-im-stuck/#findComment-786416
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×