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 the directory extra1 under directory 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
40 hours of work in a week. Any hours of work over that is
paid at the overtime rate of one and a half (1.5 ) times the regular rate.
However, an employee will not take all this money home. Here is what
is happening to the money that the employee makes:
2.5% is withhold for social security tax,
7% is withhold for federal income tax,
3% is withhold for state income tax,
For a single person, $35/week is held for medical inssurance. This
amount will be $55/week for couples, and $70/week for couples with one
children. A couple with two or more children will pay $100/week for
$10 per week is withhold for union dues, club membership, etc.
Your program will read from the keayboard:
The number of hours worked in a week,
Number of family members: 1 for single, 2 for couple, 3 for couples with
one child, etc ...
A choice that allows users to run the program for another employee again,
i.e., after completing one calculation, the user may enters ‘y’ or ‘Y’
to repeat the calculations or enter anything else to stop the program.
Your program will display the following with appropriate labels:
The number of hours worked: regular and overtime hours
The worker's gross pay for: regualr hours of work and for overtime
hours, and the total
Itemized list of withholding amount: social security tax, fedral
income tax, state income tax, club due, and medical
The net take-home pay for the week, if any.
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.