P A Y 5

SPECIFICATIONS FOR:   Payroll Project -- version 5
(Note: All previous specifications apply to this version, unless otherwise noted.


PURPOSE:   Weekly payroll processing. (One employee at a time.)

DESCRIPTION:   Produce a "pay stub" and a "check" for each employee who worked during the week.
Also display various reports and summaries. There are two stages to normal operation of this program:

EVENT HANDLERS:  

INPUT:  
Employee Data
ID ID number. a unique integer
Last Name Last name. String
First Name First name. String
Dept. Department number. integer
Code Overtimne Code. 1, 2, 3, or 4
Rate Hourly pay rate. dollars and cents
Payroll Data
Hours Number of hours worked. dollars and cents

OUTPUT:   There are two output areas:

Pay Stub:   Display the following information, properly identified and formatted:

Pay Check:   Display a simulated paycheck containing the following information:

CALCULATIONS:   The following should be performed.

Gross pay depends on overtime code. For nonexempt employees (code = 1), overtime pay is "time-and-a-half" (1.5 times the hourly rate) for all hours over 40. For other codes, simply multiply hours by rate.

Deductions Calculate deductions as 15.3% of gross pay.

Taxes Taxes are as follows, based on the amount remaining when deductions are subtracted from gross pay:   No taxes on the first $100, 10% tax on the next $100, 15% on the next $100, 25% on the next $300, and 35% on any amounts over $600.

Net Pay is gross pay minus deductions and taxes.