Calculation problem

I've to create a program that calculate tax based on gross pay. On the first 200$ the tax will be 10% of the pay, on the next 400$ the tax will be 15% and anything over 600$ will be 20%.

if you have more than 200, add 20 to tax and subtract 200 from money
otherwise add 10% of the money you have to the tax and set money to 0

then repeat the exact same thing with 400.

then do the 'otherwise' part with 600.
Topic archived. No new replies allowed.