I need help with the first problem I posted. I already finished the last program
ID: 3678814 • Letter: I
Question
I need help with the first problem I posted. I already finished the last program. I posted it because it extends that problem. Thanks in advance!
In a particular factory, a team leader is an hourly paid production worker that 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 rhes that estends the product lonktorker class you designed in e reanieader class that extends the ProduetionNorker class you designed in Programming Challenge 1 The Teanteader class should have fields for the monthly bonus amount, the required num- ber 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 methods for the class. Demonstrate the class by writing a program that uses a Teanteader objectExplanation / Answer
Please find the required code and output below :
------------------------------------------------
OUTPUT:
ProductionWorker{shift=1, hourlyPayRate=200.0, name='worker 1', number='312-B', date='02/10/2016'}
ProductionWorker{shift=2, hourlyPayRate=500.0, name='worker 2', number='472-D', date='12/11/2015'}