DESCRIPTION:
Process the weekly payroll for each employee of a company.
For each employee, compute the weekly pay amount
and create a paystub and a paycheck.
Also, produce a payroll summary report.
INPUT: Allow input of the following data for one employee:
EVENTS:
OUTPUT:
Paystub & paycheck
When pay is computed for each employee,
the program shall
display a simulated pay stub and paychek
similar to the following.
PAYSTUB: Employee ID: 9842 Last name: Doe First name: John Department: AMD Hourly rate: $ 10.00 Exempt code: 1 Dependents: 3 Hours worked: 45 Gross pay: $ 543.21 Deductions: $ 70.10 Deductions: $ 102.05 Gross pay: $ 371.06 PAYCHECK: Pay to the order of John Doe the amount of $ 123.45 |
Weekly payroll was $12,345.67 17 employees worked, this week. Average gross pay was $543.21 Total overtime paid this week was $1,234.56 7 employees worked overtime, this week. Highest overtime amount was was $123.45 |
GROSS PAY
The gross pay amount shall be calculated from the pay rate and the hours worked.
If the pay code is one (1),
then that employee is entitled to "time-and-a-half"
for each hour worked beyond the first 40 hours.
For this version of the project, multiply the hours worked by the hourly pay rate for any employee whose code is greater than one. (No overtime premium for codes greater than 1 and/or employees working less than 40 hours.)
DEDUCTIONS
Deductions are $50 plus $10 per dependent.
However, deductions can never be more than the gross pay.
(If deductions calculate to a negative amount, make them zero.)
TAXES
Taxes are based on a "base amount" computed as follows:
For this version of the payroll project, taxes are 15% of a "base amount.
However, taxes are never less than zero.
(If deductions calculate to a negative amount, make them zero.)