Income tax program.

Nov 19, 2009 at 3:48pm
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.
Nov 19, 2009 at 4:37pm
What code do you have?
Nov 19, 2009 at 10:02pm
net salay = gross salary - tax

Isn't this an economic question ?
Nov 23, 2009 at 12:15pm
Thanks joeriMJ, its working perfectly.
Topic archived. No new replies allowed.