PAYROLL LAB*
Copy the Payroll program
Add new functions.
PrintCheckInfo to the Employee class
that prints the basic information that is common to all checks.
Then modify the versions of PrintCheck in the derived classes
to call PrintCheckInfo.
CalculatePay that
performs the necessary calculation of the value for netPay
for the derived classes.
Then modify the versions of PrintCheck in the derived classes
to call CalculatePay.
Add new derived classes.
Employee class hierarchy so that class
Temporary serves as a base class for two derived classes,
Contract and Consultant.
Contract employees are Temporary employees who
work for an hourly rate (like the Temporary employees in our
original hierarchy).
Consultants are Temporary employees who work for
a fixed, flat rate.
Employees.
Print out and hand in copies of all three files:
If you have extra time, you can continue your work on the final programming project.
*This lab is based on the lab from Chapter 8 of The Object Concept by Rick Decker and Stuart Hirshfield, International Thomson Publishing Company, 1995.