Question: PROGRAMMING LANGUAGE C++ PROGRAMMING LANGUAGE C++ PROGRAMMING LANGUAGE C++ Design a class named Timeoff. The purpose of the class is to track an employee's sick

PROGRAMMING LANGUAGE C++

PROGRAMMING LANGUAGE C++

PROGRAMMING LANGUAGE C++

 PROGRAMMING LANGUAGE C++ PROGRAMMING LANGUAGE C++ PROGRAMMING LANGUAGE C++ Design a

Design a class named Timeoff. The purpose of the class is to track an employee's sick leave, vacation, and unpaid time off. It should have, as members, the following instances of the NumDays class described in Programming Challenge 4 maxSickDays A NumDays object that records the maximum number of days of sick leave the employee may take. A NumDays object that records the number of days of sick leave the employee has already taken A NumDays object that records the maximum number of days of paid vacation the employee may take. A NumDays object that records the number of days of paid vacation the employee has already taken sickTaken maxVacation vacTaken More About Classes maxUnpaid A NumDays object that records the maximum number of days of aid vacation the employee may take. A NumDays object that records the number of days of unpaid leave the employee has taken. unpaidTaken Additionally, the class should have members for holding the employee's name and iden tification number. It should have an appropriate constructor and member functions for storing and retrieving data in any of the member objects Input Validation: Company policy states that an employee may not accumulate more than 240 hours of paid vacation. The class should not allow the maxvacation object to store a value greater than this amount Design a class named Timeoff. The purpose of the class is to track an employee's sick leave, vacation, and unpaid time off. It should have, as members, the following instances of the NumDays class described in Programming Challenge 4 maxSickDays A NumDays object that records the maximum number of days of sick leave the employee may take. A NumDays object that records the number of days of sick leave the employee has already taken A NumDays object that records the maximum number of days of paid vacation the employee may take. A NumDays object that records the number of days of paid vacation the employee has already taken sickTaken maxVacation vacTaken More About Classes maxUnpaid A NumDays object that records the maximum number of days of aid vacation the employee may take. A NumDays object that records the number of days of unpaid leave the employee has taken. unpaidTaken Additionally, the class should have members for holding the employee's name and iden tification number. It should have an appropriate constructor and member functions for storing and retrieving data in any of the member objects Input Validation: Company policy states that an employee may not accumulate more than 240 hours of paid vacation. The class should not allow the maxvacation object to store a value greater than this amount

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!