Without your problem statement or the input you used it's hard to know just what your results should be. Offhand, I'd hazard a guess that you should be adding the raise to the annual wage before calculating the next year's raise.
Something like wage = wage + (raiseMoney * i);
vmanes
Postaholic
2,015 posts since Aug 2007
Reputation Points: 1,283
Solved Threads: 242
Skill Endorsements: 6
The equation should be
wage = wage * (1+(raiseMoney/100));
Taywin
Posting Maven
2,633 posts since Apr 2010
Reputation Points: 275
Solved Threads: 375
Skill Endorsements: 17
Oops, I forgot to fully engage brain before activating typing fingers. vidit X has a good solution there.
vmanes
Postaholic
2,015 posts since Aug 2007
Reputation Points: 1,283
Solved Threads: 242
Skill Endorsements: 6
Question Answered as of 1 Year Ago by
vmanes,
vidit_X
and
Taywin