Question
You are required to develop a program that implements a system to manage a Skin Consultation Centre. According to the Inheritance principle you have to
You are required to develop a program that implements a system to manage a Skin Consultation Centre.
According to the Inheritance principle you have to design and implement a super class Person and the subclasses Doctor and Patient.
The classes 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 . (You can add any other information that you consider appropriate and you can implement additional classes with justification to make the code more robust or user friendly).
-The Doctor subclass should hold specific information and methods. You should add the medical licence number and the specialisation (e.g. cosmetic dermatology, medical dermatology, paediatric dermatology, etc.) as instance variables and the relative get/set methods .
-The Patient subclass should hold specific information and methods. You should add a patient unique id as instance variables (attribute) and the relative get/set methods .
-You should implement a class Consultation to represent the booked consultation with a specific doctor from a patient. The class should hold information about: date and time slot for the consultation (to represent the date you can use either the class provided during tutorials or you can use any java API), the cost, notes, and the relative get/set methods..
-Design and implement a class called SkinConsultationManager, which implements the interface SkinConsultationManager . SkinConsultationManager maintains the list of the doctors and provides all the methods for the system manager.
The class SkinConsultationManager should display in the console a menu, containing the following management actions from which the user can select one.
-Add a new doctor in the system. It should be possible to add a new doctor, with all the relevant information. You should consider that the centre can allocate a maximum of 10 doctors .
-Delete a doctor from the system, selecting the medical licence number. 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 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..
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started