advice on how to do

In-source staffs will be paid by hours and are only allowed to work up to 20 hours per
week. Production staff will be paid a basic pay range from $800 to $1,999 per month. If
they work more than 8 hours per day, they will be paid an overtime pay of 1.5 times of
their basic hourly pay for each extra hour they work. Assume that there are 20 working
days per month and 8 hours per day, the basic hourly rate for a worker earning a basic
pay of $800 will be $800/(20*8).
Any staff earning a pay of $2000 and above are executive staff. Executive staffs are not
allowed to claim overtime pay for addition hours they work.
All employees are paid at the end of each month.


Design the necessary classes and member functions to achieve the following tasks :
a. Allow user to enter employee information. Each employee should have employee
name, employee number and type of employee.
b. Accept entry and update the number of hours of work done by In-source staff.
c. Check and give a warning if the number of hours entered per week is more than
20 for In-source staff.
d. Accept entry of the number of overtime hour worked by production staff.
e. Compute overtime pay based on 1.5 times the basic hourly pay.
f. Calculate the employee pay.
g. Payroll details for each employee should be updated in a text file.
hmm... post your initial algorithm or code first so that we could make a comment on that...

Topic archived. No new replies allowed.