![]() Write one or more constructors and the appropriate accessor and mutator methods for the class. The day shift is shift 1 and the night shift is shift. The shift field will be an integer value representing the shift that the employee works. ProductionWorker Class / Program Name: ProductionWorker.java Created Date: Created By: Tommy Saechao Purpose: A subclass that inherits information from the Employee superclass. The day shift is shift 1 and the night shift is shift 2. ![]() The shift variable will hold an integer value representing the shift that the employee works. The TeamLeader class should have fields for the monthly bonus amount, the required number of training hours, and the number of training hours that the team leader has attended. The ProductionWorker class should have fields to hold the following formation: middot Shift (an integer) middot Hourly pay rate (a double) The workday is divided into two shifts: day and night. Employee and Production Worker Classes Ask an Expert Computer Repair Questions Programming Problems The workday is divided into two shifts: day and night. Design a TeamLeader class that extends the ProductionWorker class you designed in Programming Challenge 1. Hire date Write one or more constructors and the appropriate accessor and Question:Problem 1: Employee and Production Worker Classes. Next, design a class named ProductionWorker that extends the Employee class. Next, write a class named ProductionWorker that extends the Employee class. The class should keep the following information in fields: Employee name Employee number in the format XXX-L, where each X is a digit within the range 0-9 and the L is a letter within the range A-M. You are to submit the following for the assignment:Submit your JAVA source. The class should keep the following information in fields: middot Employee name middot Employee number middot Hire date Write one or more constructors and the appropriate accessor and mutator methods for the class. Write a C++ program to define a class employee having members Emp-id, Emp-name, basic salary and functions accept and display. _ The Employee and productionWorker classes from HW #2 _ Employee and ProductionWorkder Classes Design a class named Employee. The class should keep the following information in fields: Employee name Employee number in the format XXX-L, where each X is a digit within the range 09, and the L is a letter within the range A-M. ![]() Write a test program that demonstrates how each of these exception conditions works. Employee and Production Worker Classes Design a class named Employee. Modify the Employee and ProductionWorker classes so they throw exceptions when the following errors occur: middot The Employee class should throw an exception named InvalidEmployeeNumber when it receives an invalid employee number middot The ProductionWorker class should throw an exception named InvalidShift when it receives an invalid Shift middot The ProductionWorker class should throw an exception named invalidePayRate when it receives a negative number for the hourly pay rate.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |