Using C++, this assignment uses two classes which utilize theconcept of aggregation. One class will be called TimeOff. Thisclass makes use of another class called NumDays. Then you willcreate a driver (main) that will handle the personnel records for acompany and generate a report.
TimeOff class will keep track of an employee’s sick leave,vacation, and unpaid time off. It will have appropriateconstructors and member functions for storing and retrieving datain any of the member objects.
Data members of TimeOff:
- name as string – name of employee
- empNum as integer – employee ID
- maxSickDays as NumDays
- sickTaken as NumDays
- maxVacation as NumDays
- vacTaken as NumDays
- maxUnpaid as NumDays
- unpaidTaken as NumDays
Validation:
- Company
OROR