Your program should ask the user for:
Then it must calculate the tax liability for the user.
Following is a tax table you should use to compute the Cocamongese income tax:
|Annual income||Tax Liability (before Dependent Allowance)|
|P 0 - P 50,000||tax is 20% of income|
|P 50,001 - P 100,000||P 11,000 base plus 25% of income above P 50,000|
|P 100,001 - P 250,000||P 28,000 base plus 33% of income above P 100,000|
|P 250,001 and up||P 75,000 base plus 42% of income above P 250,000|
The Dependent Allowance is an amount deducted from your tax liability for each person who is dependent on you. Following is the Dependent Allowance table:
|Number of dependents||Dependent Allowance|
Note: You cannot have a negative tax liability in Cucamonga.
It should then output the following:
Enter your income for the year: 60000
Enter number of dependents: 2
|P||13500.00||Tax Liability (before Dependent Allowance)|
|P||9500.00||Net Tax Liability|
You should read integer values from the user. However, you should output float values. Alignment of the output values is important.
You should use if / else if / else statements to choose
between the formulae for each tax rate.
You should use a switch statement to determine the Dependent Allowance.