Hello, I'm new in C++, and I would like to know, How I do this?
computeTax()
In order to determine the tax burden, it is necessary to project the monthly income to yearly income, compute the tax, and reduce that amount back to a monthly amount. In each case, it is necessary to determine the tax bracket of the individual and to then apply the appropriate formula. The tax brackets for the 2006 year are:
If taxable income is over-- But not over-- The tax is:
$0 $15,100 10% of the amount over $0
$15,100 $61,300 $1,510.00 plus 15% of the amount over 15,100
$61,300 $123,700 $8,440.00 plus 25% of the amount over 61,300
$123,700 $188,450 $24,040.00 plus 28% of the amount over 123,700
$188,450 $336,550 $42,170.00 plus 33% of the amount over 188,450
$336,550 no limit $91,043.00 plus 35% of the amount over 336,550
The pseudocode for computeTax() is the following: