Incrementing

  • Thread starter Thread starter HardTP
  • Start date Start date
H

HardTP

Current age minus retirement age should not impact the salary calculation.
Post your code and where you are having a problem, and maybe someone can help.
 
Well, you seem to be missing one important piece of information - like
current age. Or, lacking that, instead of retirement age,
years-to-retirement. Then, knowing the number of years till retirement, when
the user clicks the 'Calculate' button, it is basically, for each year till
retirement, salary = salary * (1+(raise%/100)).
 
Back
Top