Step 1: Write an Employee class that saves data attributes for the following pieces of information:

  • Employee name
  • Employee ID
  • Employee campus: save as a dictionary with the following key/ value combinations:

Dictionary key/value combinations

Key Value
1 East
2 IPAC
3 North
4 Porter
5 West

  • Display the contents of the dictionary similar to a menu:
1) East
2) IPAC
3) North
4) Porter
5) West
  • Prompt the user to enter the campus' corresponding number. The program should display a message if the number is not in the dictionary.
  • Return the corresponding value for the number entered using the appropriate dictionary method.
  • Write the appropriate accessor and mutator methods for the Employee class.

Step 2: Write a class named Worker that is a subclass of the Employee class. The Worker class should keep the follow data attribute:

  • Employee classification
    • Create a list with values: Administration, Staff, Faculty
    • Prompt the use to enter (A, S or F) then display the corresponding value using the list
  • Write the appropriate accessor and mutator methods for the Worker class.

Step 3: Write a program that creates an object of the Worker class and prompts the user to enter data for each of the object's data attributes.

Step 4: Ensure to write meaningful, grammatically correct comments throughout your code. Add appropriate messages when users do not enter proper information.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.