CS1440 - Extra Lab (1)
Objectives of this extra Lab are:
To implement all the steps required in software design
To utilize different variable types, conditional statements,
You need to create a directory extra1 under 1440. Change to that
directory and complete your work there.
An employee is paid at a rate of $16.78 per hour for his/her regular
hours worked in a week. Any hours over that are paid at the overtime
rate of one and one half (1.5 ) times that. Here is what is happening
to the money that the employee makes. From the worker's gross pay:
6% is withhold for social security tax,
14% is withhold for federal income tax,
5% is withhold for state income tax,
$10 per week is withhold for union dues, and
In Addition, if an employee has 3 or more dependents, a $35 is withhold
to cover extra cost of health insurance in addition to what the employee
Number of regular hours is 40.
Your program will read:
The number of hours worked in a week from the keyboard,
The number of dependents, and
Also, it will ask whether you want to repeat the calculations for a new
case. If the user enters ‘y’ or ‘Y’ you will repeat the calculations
Your program will display the following with appropriate labels:
The number of hours worked,
The worker's gross pay,
The withholding amount, and
The net take-home pay for the week.
This extra lab does not have a post lab, however your instructor may
give you an assignment that should be completed by the lab time next week.