View the step-by-step solution to:

Compose a class named Employee that holds the following data about an employee in attributes: name , ID number, department, and job title. Make a UML...

·        Compose a class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job title.


·        Make a UML diagram for Employee class.


·        Make 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, 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.

Top Answer

When the program is run for the first time then the sample output is as follows: 1. Look up an employee in the dictionary 2.... View the full answer

Capture.PNG

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online