annual percent raise

RatDan

Member
Joined
Sep 26, 2006
Messages
10
Programming Experience
Beginner
I'm trying to built a program that a user enter their current age, salary, annual raise and retirement age. the program should calculate their lifetime earning. I am having problem with writing code for annual percent raise any suggestion?.
Thanks
 
what's the code you got so far? we cant help without knowing what you've got vs where you're stuck
 
So far I am using a for...loop from current age to retirement age.
The problem I am having is try to write a code for calculating the current salary times Annual raise from the current age to retire age using a loop.
 
Its hard to tell without seeing the actual source but give this a shot:

each iteration of the for loop multiply the salary by (e.g. for 5%) 1.05
 
Back
Top