Loyola College in Maryland
CS 202 - Computer Science II
Fall 2005
Loyola College >
Department of Computer Science >
Dr. James Glenn >
CS 202 >
Homework >
Homework #1
Due: Monday, September 27th at the beginning of class
- Add a calcLeaveUsed method to the superclass Employee
in our Payroll application.
Show how HourlyEmployee and SalariedEmployee would be
modified.
- Rewrite makePaystub assuming calcLeaveUsed has been
defined in Employee. Show what modifications would be done with
all three classes.
- Write a class TempEmployee.
A temporary employee is exactly like an hourly employee except we must
keep track of the temp agency for that provided us with the employee.