CSC 271 - Software I: Utilities and Internals

Dr. R. M. Siegfried

Assignment #13 - Writing a modular payroll program

Due Friday, November 17, 2017

You are working for a company that is somewhat progressive in their pay scale. Single people get paid $10 per hour; married people get paid $15 per hour. In either case, they get paid an extra $1 per hour for their first four children.

Your program in Python will deduct income tax according for the following income tax brackets:
Weekly incomeIncome Tax Rate
Under $300No Tax
$300 - $399.995%
$400 - $599.998%
$600+ 10%

Divide the program into several functions:

Ask the user if (s)he wants the instructions displayed. Obviously, the printInstructions method is only used if the answer is 'y' or 'Y'.

As usual, the employee will get time and a half after 40 hours.

[Back to the Assignments List]