For this program we are using objects, class, Inheritance, Polymorphism, and virtual function.
Programming Challenge 1 & #3 Page 982-Chapter 15 E9
Part 1
Design a class named Employee. The class should keep the following information:
* Employee name
* Employee number
* Hire date
Write one or more constructors, and the appropriate accessors and mutator functions, for the class. Next write a class named ProductionWorker that is derived from Employee class. The ProductionWorker class should have member variables to hold the following information:
* Shift (an integer)
* Hourly pay rate (a double)
The workday is divided into two shifts: day and night. The shift variable hold an integer value representing the shift that the employee works. The day shift is shift 1, and the night shift is shift 2. Write one or more constructors, and the appropriates accessor and mutator functions, for the class by witting a program that uses a ProductionWorker object
Part 2:
Now in a particular factory , a team leader is an hourly paid production worker who leas a small team. In addition to hourly pay, team leaders earn a fixed monthly bonus. Team leaders are required to attend a minimum number of hours of training per year.
Design a TeamLeader class that extends ProductionWorker class you designed in part 1 of this assignment. The TeamLeader class should have member variable for the monthly bonus amount, the required number of training hours, and the number of training hours that the team leader has attended.
Write one or more constructors and the appropriate accessor and mutator functions for the class. Demonstrate the class by writing a program that uses a TeamLeader object.
Grading for Each assignments is Based on following requirements clearly stated as follow:
a. Top of each Program you have your Name : Indicated that this is your work. (1 point )
b. Next line is indicating the date you are submitting your program. (1 point )
c. Next line you will write a brief explanation for what this program intend to do. (1 point )
d. Use of sufficient comments to clarify use of syntax. (1 point)
e. Use of meaningful variable (identifier) in your program (1 point)
f. Separate input, process, and output instructions by a comment (In-Process-Out) (1 point)
g. Working program without any error (3 points)
h. Turn in on time (1 point deducted for each day late submission) (1 point)


0 comments