Question: I am creating a program that implements a system to manage a skin consultation centre. Can you code in java in netbeans and explain the

I am creating a program that implements a system to manage a skin consultation centre. Can you code in java in netbeans and explain the code and output. 

qa_attachment_1672587264104.jpg 

1. Design and classes implementation (Phase 1) The design of your system should be consistent with the Object Oriented principles and easy to understand by an independent programmer. You are required to design your program using UML diagrams. In particular you have to draw: A UML use case diagram for the system (6 marks). A UML class diagram (6 marks) 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 (4 marks). (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). In particular: 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 (4 marks). 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 (4 marks). 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 (4 marks). Design and implement a class called WestminsterSkinConsultation Manager, which implements the interface SkinConsultation Manager (2 marks). WestminsterSkinConsultation Manager maintains the list of the doctors and provides all the methods for the system manager. 2. Console Menu Implementation (Phase 2) The class WestminsterSkinConsultation Manager 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 (5 marks). 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 (5 marks). 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 (5 marks). 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 (5 marks).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is the Java code for a skin consultation center management sys... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!