Lavi M.

asked • 11/01/20

How to make these? (OOP Java)

Program will print a selection screen where the user can choose the operation he/she wants to perform. The selection screen will be repeated after each selection until the staff type the number 4 to completely exit from the program:

1. Add an administration staff (by providing all her/his information) to the list of all administration staff.

2. Add a doctor (by providing all her/his information) to the list of all doctors.

3. Print all working staff (remember to differentiate between administration staff and doctors

in the output printout).

4. Exit the program.

The Hosptal has several employees and each one of them has an ID (int), name (string), address

(string), mobile phone number (string), email (string) and salary (double) with suitable data types.

The employees are divided into:

●Administration staff: who have in addition to the previous information their position (string).

●Doctor: who have also a rank (string) and specialty .

You have to apply all the OOP (Object Oriented Programming) concepts that we have covered in this module (i.e. inheritance, polymorphism, interface and collections)

1 Expert Answer


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.


Find an Online Tutor Now

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