Write a program to compute income tax as follows:
First, display the following menu and ask the user to select his or her filing status:
1. Single
2. Married filing separately
3. Married filing jointly
4. Head of household
For Single status, apply a deduction of $2000, for #2 $1700, for #3, $2300 and Head of household $2700. Add to the deduction amount, $150 for each dependent up to a maximum of 4 dependents if single, $125 for each dependent up to a maximum of 4 for Married filing separately, $175 for each dependent, up to a maximum of 5, if married filing jointly, or head of household. Add also 15% of any uncovered (out-of-pocket) medical expenses for singles and married filing individually, and 20% for the other two. Likewise add 20% of any college expenses to first and second and 25% for the other two, as well as 20% of charitable contributions for all four.
Then, get user's income and compute the taxable income by subtracting the deduction from his or her income. Anyone with a taxable income of less than $8,000 pays no taxes. For the rest, the first $15,000 of the income has a tax rate of 10%, the next $25,000 gets taxed at 15%, the next $30,000 at 20%, the next $30,000 at 25% and anything above $100,000 at 30%. So, for example, someone who had taxable income of $125,000, her first $15,000 gets taxed at 10% ($1,500), plus 15% of $25,000 ($3,750), plus 20% of $30,000 ($6,000), plus 25% of $30,000 ($7,500) and the remaining $25,000 at 30% ($7,500) for a total tax amount of $26,250. For someone with income of $13,000, the tax is 10% of that or $1,300. For someone who made $7,999.99 it would be 0, but for someone who made $8,000, it's $800. For someone who made $30,000, it would be 10% of $15,000 or $1,500 plus 15% of the remaining $15,000 or $2,250 making it $3,750, and so on.
First, display the following menu and ask the user to select his or her filing status:
1. Single
2. Married filing separately
3. Married filing jointly
4. Head of household
For Single status, apply a deduction of $2000, for #2 $1700, for #3, $2300 and Head of household $2700. Add to the deduction amount, $150 for each dependent up to a maximum of 4 dependents if single, $125 for each dependent up to a maximum of 4 for Married filing separately, $175 for each dependent, up to a maximum of 5, if married filing jointly, or head of household. Add also 15% of any uncovered (out-of-pocket) medical expenses for singles and married filing individually, and 20% for the other two. Likewise add 20% of any college expenses to first and second and 25% for the other two, as well as 20% of charitable contributions for all four.
Then, get user's income and compute the taxable income by subtracting the deduction from his or her income. Anyone with a taxable income of less than $8,000 pays no taxes. For the rest, the first $15,000 of the income has a tax rate of 10%, the next $25,000 gets taxed at 15%, the next $30,000 at 20%, the next $30,000 at 25% and anything above $100,000 at 30%. So, for example, someone who had taxable income of $125,000, her first $15,000 gets taxed at 10% ($1,500), plus 15% of $25,000 ($3,750), plus 20% of $30,000 ($6,000), plus 25% of $30,000 ($7,500) and the remaining $25,000 at 30% ($7,500) for a total tax amount of $26,250. For someone with income of $13,000, the tax is 10% of that or $1,300. For someone who made $7,999.99 it would be 0, but for someone who made $8,000, it's $800. For someone who made $30,000, it would be 10% of $15,000 or $1,500 plus 15% of the remaining $15,000 or $2,250 making it $3,750, and so on.

