Question: (Write code in Python) Write a class named Employee that holds the following data about an employee in attributes: name , ID_number, department, and job
(Write code in Python)
Write a class named Employee that holds the following data about an employee in attributes: name, ID_number, department, and job title.
Create a UML diagram for Employee class.
Create a program that stores Employee objects in a dictionary. Use the employee ID number as the key. The program should present a menu that lets the user perform the following actions:
Look up an employee in the dictionary
Add a new employee to the dictionary
Change an existing employees name, depart, and job title in the dictionary
Delete an employee from the dictionary
Quit the program
When program ends, it should pickle the dictionary and save it to a file. Each time the program starts, it should try to load the pickled dictionary from the file. If the file does not exist, the program should start with an empty dictionary.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
