Write a python class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job title. Once you have written the class, write a PYTHON program that creates three Employee objects to hold the following data:
Employee Management System
Write a python class named Employee that holds the following data about an employee in attributes:
name, ID number, department, and job title. Once you have written the class, write a PYTHON
Name | ID Number | Department | Job Title |
Susan Meyers | 47899 | Accounting | Vice President |
Mark Jones | 39119 | IT | Programmer |
Joy Rogers | 81774 | Manufacturing | Engineer |
The program should store this data in the three objects, then display the data for each employee on the screen.
Using the 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 employee’s name, department, and job title in the dictionary
• Delete an employee from the dictionary
• Print all employees in the dictionary
• Quit the program
When the 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.
Sample Input/Output:
Menu
----------------------------------------
1. Look up an employee
2. Add a new employee
3. Change an existing employee
4. Delete an employee
5. Print all employees
6. Quit the program
Enter your choice: 1
Enter an employee ID number: 47899
Name: Susan Meyers
ID number: 47899
Department: Accounting
Title: Vice President
Menu
----------------------------------------
1. Look up an employee
2. Add a new employee
3. Change an existing employee
4. Delete an employee
5. Print all employees
6. Quit the program
Enter your choice: 6
![CH10: Problem 1: Employee Management System
Write a class named Employee that holds the following data about an employee in attributes:
name, ID number, department, and job title. Once you have written the class, write a
program that creates three Employee objects to hold the following data:
Name
Susan Meyers
ID Number
Department
Job Title
47899
Accounting
Vice President
Programmer
Engineer
The program should store this data in the three objects, then display the data for each employee
Mark Jones
Joy Rogers
39119
IT
81774
Manufacturing
on the screen.
Using the 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 employee's name, department, and job title in the dictionary
• Delete an employee from the dictionary
Page 1 of 3
• Print all employees in the dictionary
• Quit the program
When the 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.
Sample Input/Output:
Menu
1. Look up an employee
2. Add a new employee
3. Change an existing employee
4. Delete an employee
5. Print all employees
6. Quit the program
Enter your choice: 1
Enter an employee ID number: 47899
Name: Susan Meyers
ID number: 47899
Department : Accounting
Title: Vice President
Menu
1. Look up an employee
2. Add a new employee
3. Change an existing employee
4. Delete an employee
5. Print all employees
6. Quit the program
Enter your choice: 6](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F4c61721a-eb6a-4aa6-a978-e0da6186e130%2Fe71bb5e7-6b87-4318-b26f-6217b61b9559%2Fwfkdbxk_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)