Question: solve the following programming challenge using c++ In a particular factory, a team leader is an hourly paid production worker who leads a small team.
solve the following programming challenge using c++
In a particular factory, a team leader is an hourly paid production worker who leads 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 the ProductionWorker class you designed in Programming Challenge 1. The TeamLeader class should have member variables 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.
- hire_date member variable must be of Date type
- add date class in your project. This class should at least contain:
(a) three member variables namely month, day, and year
(b) a member function getDate(). this should return as "Month_NameDay, Year"
(c) Add accessor and mutator functions, if necessary
(d) Add one or more constructors
Demonstrate the class by writing a program that uses TeamLeader object. Driver program should use overloaded stream insertion/ extraction operators for input and output operations. input validation is required in this code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
