Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DON'T GIVE WRONG ANSWERS PLEASE! According to the Inheritance principle you have to design and implement a superclass Person and the subclasses Doctor and Patient.

DON'T GIVE WRONG ANSWERS PLEASE!

According to the Inheritance principle you have to design and implement a superclass Person and the subclasses Doctor and Patient. The class Person should include appropriate methods in order to comply with the encapsulation principle and hold information about the name, surname, date of birth and mobile number.

Doctor subclass should hold specific information and methods. You should add the medical licence number, the specialisation as instance variables, and the relative get/set methods.

The Patient subclass should hold specific information and methods. You should add a unique patient id as instance variables (attribute) and the relative get/set methods.

How to implement a class Consultation to represent the booked consultation with a specific doctor from a patient?

here the user selects a doctor and add a consultation after checking if he is available

The class should hold information about: the date and time slot for the consultation the cost, notes, and the relative get/set methods Design and implement a class called WSkinConsultationManager, which implements the interface WestminsterSkinConsultationManager maintains the list of the doctors and provides all the methods for the system manager.

Add a new doctor to the system using user inputs. It should be possible to add a new doctor, with all the relevant information. Also, consider that the centre can allocate a maximum of 10 doctors.

. Delete a doctor from the system, selecting the medical licence number as a user input. Display a message with the information of the doctor that has been deleted and the total number of doctors in the centre

. Print the list of the doctors in the consultation centre. For each doctor, print on the screen all the stored information. The list should be ordered alphabetically according to the doctor's surname

. Save in a file all the information entered by the user so far. The next time the application starts it should be able to read back all the information saved in the file and continue to use the system.

FOCUS ON THE BELOW THOROUGHLY

get user inputs and implement the code using them. ( do not hard code the doctor details and patient details)

using the calculate the cost for the consultation

15$ per hour in the first consultation, 25$ per hour for the next consultation onwards

how to write this using java code?

I NEED THE FULLY COMPLETED CODE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

8. Explain the contact hypothesis.

Answered: 1 week ago

Question

7. Identify four antecedents that influence intercultural contact.

Answered: 1 week ago