Re: Tax calculation program help!!

What do you mean by "what I should use in the program for the number of years"? Sounds like an int to me.

ye I am using an int, and yea I don't think I explained it very well lol

say, for example the number of years input is 3, basic salary is £15,000, annual increase is 10%

then the output needs to be (for gross salary):

year1: 15, 000
year2: 16,500
year3: 18,150

I can do all the calculations etc, but I don't know how to make it display the desired number of years. I also need to display the tax for each year, but I think it will be the same method as displaying the gross salary.

Re: Tax calculation program help!!

I used a for statement, and now if I input the year and basic salary, it prints out the gross tax for each of the years.
Now I just need to be able to increment the annual percentage increase each year, hopefully shouldn't be too hard!