Income tax program.

I need to create a program for calculating the income tax.

The requirement are as follows.

The local tax office has contacted you as programmer because they are computerizing their
system of calculation. They need an application written in C++ in order to calculate the right
income tax with respect to a given salary. This is how the program should work:
1) The clerk introduce the salary as a screen input;
2) The income tax is calculated;
3) Then the net is calculated after the deduction of the income tax from the salary. Consider
the following basis for the creation of the program: 30% income tax if the salary is above
50000 Kc; 20% income tax if the salary is between 25000 Kc and 50000 Kc; and 10%
income tax if the salary is below 25000 Kc.
Your application when it runs (.exe) should take as an input the salary, displays below this
amount with the currency in Kc, calculate the income tax and the net salary after the deduction.

Calculating the income tax is fine, but I'm lost in what is the statement to calculate the net salary.

Thanks for the help.
What code do you have?
net salay = gross salary - tax

Isn't this an economic question ?
Thanks joeriMJ, its working perfectly.
Topic archived. No new replies allowed.