Question: Please write this program in python 3. thank you. Write an Employee class that keeps data attributes for the following pieces of information: Employee name

 Please write this program in python 3. thank you. Write an

Please write this program in python 3. thank you.

Write an Employee class that keeps data attributes for the following pieces of information: Employee name Employee number Next, write two classes named ProductionWorker and ShiftSupervisor that are subclasses of the Employee class. The ProductionWorkerclass should keep data attributes for the following information: Shift number (an integer, such as 1, 2, or 3) Hourly pay rate Shift attribute will hold an integer value representing the shift that the employee works. The day shift is shift 1 and the night shift is shift 2. In a particular factory, a shift supervisor is a salaried employee who supervises a shift. In addition to a salary, the shift supervisor earns a yearly bonus when his or her shift meets production goals. The ShiftSupervisorclass should keep a data attribute for the: Annual salary Annual production bonus that a shift supervisor has earned. Write the appropriate accessor and mutator methods for each class. Once you have written the classes, write a program that creates two objects, object of the ProductionWorker class and an object of SliiftSupervison class, and prompts the user to enter data for each of the object's data attributes. Store the data in the object and then use the object's accessor methods to retrieve it and display it on the screen

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!