You should have alsready written a payroll program for a company where single people get paid $10 per hour and married people get paid $15 per hour and they get paid an extra $1 per hour for their first four children.
Your program will now deduct income tax according for the following income tax brackets:
Weekly income | Income Tax Rate |
---|---|
Under $300 | No Tax |
$300 - $399.99 | 5% |
$400 - $599.99 | 8% |
$600+ | 10% |
As before your program will ask whether the employee is married or not. You will read in a "0" for single and a"1" for married. Then you will ask how many children the employee has. Then you will ask for the number of hours worked and calculate gross pay income tax and net pay. As usual, the employee will get time and a half after 40 hours.