Rudolf A.

asked • 03/12/23

Computer Science

Draw a class hierarchy diagram for the following scenario. Indicate which class is the super class, and which classes are the extended child classes. Indicate in which classes you would locate each data field and method. You may draw the diagram on paper and take a photo of it to upload, or you may use software such as MS Word or Visio, or a tool of your choice.

A major league baseball team is implementing a Human Resources Payroll System.

The team has the following categories of employees:

  1. full-time
  2. part-time
  3. volunteers
  4. athletes
  5. staff
  6. executives
  7. contractors

Data fields include:

  1. SSN number
  2. first name
  3. last name
  4. home address
  5. hire date
  6. rehire date
  7. termination date
  8. employment status (active / inactive)
  9. batting average
  10. team history

Methods include:

  1. Output team history (other teams the athletes have played for)
  2. Display personal info
  3. Process salaried payroll
  4. Process part-time payroll

Be sure to determine the best classes into which to locate the various data fields and methods.


1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.