Question: Employee Management System Learning Objective: Using Python Classes and Objects Problem Description: In this problem, you will develop an employee management system using Python. Here
Employee Management System
Learning Objective: Using Python Classes and Objects
Problem Description:
In this problem, you will develop an employee management system using Python. Here are the brief requirements of the program:
Write a class named Employee, that holds information about each employee in attributes such as name, ID number, department, and job title.
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 Accounting Vice President
Mark Joseph Info Tech Programmer
Joyce Roberts Manufacturing Engineer
Create a program that stores Employee details in a dictionary. Use employee ID number as the key. The program should present a menu that lets the user perform the following actions:
a Look up an employee in the dictionary
b Add a new employee to the dictionary
c Change an existing employees name, department, and job title in the dictionary.
d Delete an employee from the dictionary
e Quit the program
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 or
Hourly pay rate
The 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 and night shift is shift
Write appropriate accessors and mutators for each class.
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 objects data attributes. Store the data in the object, then use the objects accessor and mutator methods to retrieve it and display it on the screen. Demonstrate the Shift Employee class by creating at least shift employee objects.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
