Question
Python3: Write a class named Employee that holds the following data about an employee in attributes: name , ID_number, department, and job title. Create a
Python3:
Write a class named Employee that holds the following data about an employee in attributes: name,ID_number, department, and job title.
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.
I'm having trouble solving this -- we are coding with Python 3 in an intro class so please use basic codes that I'll be able to understand! Thanks!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started