Problem Description: In this problem, you will develop an employee management system using Python. Here are the brief requirements of the program: 1. Write a class named Employee, that holds information about each employee in attributes such as name, ID number, department, and job title. 2. Once you have written the class, Draw the UML diagram, and write a program that creates three objects of employee class, with following information and displays their details. Name ID Number Department Job Title Susanna Myer 47899 Accounting Vice President Mark Joseph 39119 Info Tech Programmer Joyce Roberts 81774 Manufacturing Engineer 3. Create a new class named ShiftEmployee, that is a subclass of Employee class. The shift employee has additional attributes in addition to name, ID number, Department and Job Title. The additional attributes are: - Shift number (an integer, such as 1,2, or 3) - Hourly pay rateThe workday is divided into two shifts: day and night. The shift attribute will hold an integer value representing the shift that the employee works. The day shift is shift 1 and night shift is shift 2. 4. Once you have written the classes, write a program that creates an object of ShiftEmployee class and prompts the user to enter data for each of the object’s data attributes. Store the data in the object, then use the object’s accessor and mutator methods to retrieve it and display it on the screen. Demonstrate the ShiftEmployee class by creating atleast 2 shift employee objects. 5. Create another new class named Contractor, that is a subclass of Employee class. The contractor has additional attributes in addition to name, ID number, Department and Job Title. The additional attributes are: a. Contract End Date b. Australian Business Number (ABN) c. Fixed Contract Salary until the end of contract Demonstrate this class by creating 2 contractor objects.
Problem Description:
In this problem, you will develop an employee management system using Python. Here are the brief requirements of the program:
1. Write a class named Employee, that holds information about each employee in
attributes such as name, ID number, department, and job title.
2. Once you have written the class, Draw the UML diagram, and write a program that
creates three objects of employee class, with following information and displays their
details.
Name ID Number Department Job Title
Susanna Myer 47899 Accounting Vice President
Mark Joseph 39119 Info Tech Programmer
Joyce Roberts 81774 Manufacturing Engineer
3. Create a new class named ShiftEmployee, that is a subclass of Employee class. The
shift employee has additional attributes in addition to name, ID number, Department
and Job Title. The additional attributes are:
- Shift number (an integer, such as 1,2, or 3)
- Hourly pay rateThe workday is divided into two shifts: day and night. The shift attribute will hold an integer value representing the shift that the employee works. The day shift is shift 1 and night shift is shift 2.
4. Once you have written the classes, write a program that creates an object of
ShiftEmployee class and prompts the user to enter data for each of the object’s data
attributes. Store the data in the object, then use the object’s accessor and mutator
methods to retrieve it and display it on the screen. Demonstrate the ShiftEmployee
class by creating atleast 2 shift employee objects.
5. Create another new class named Contractor, that is a subclass of Employee class.
The contractor has additional attributes in addition to name, ID number, Department
and Job Title. The additional attributes are:
a. Contract End Date
b. Australian Business Number (ABN)
c. Fixed Contract Salary until the end of
contract Demonstrate this class by creating 2 contractor objects.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images