I am creating a program that implements a system to manage a skin consultation centre. Can you
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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). 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).
Expert Answer:
Answer rating: 100% (QA)
Here is the Java code for a skin consultation center management sys... View the full answer
Related Book For
Accounting Information Systems
ISBN: 9780132871938
11th Edition
Authors: George H. Bodnar, William S. Hopwood
Posted Date:
Students also viewed these programming questions
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
I am creating a program that implements a system to manage a skin consultation center. I have started the code in Java NetBeans. This is what I done and this is the code. public class SkinCenter {...
-
Just about every event these days is expected to have a professionally catered menu to accompany it. Weddings, conferences, corporate events, birthdays, anniversaries, graduations, and parties are...
-
Identify a true statement about the rational and emotional aspects of leadership. Multiple choice question. Leadership is not about the rational or emotional sides of human experience Leadership...
-
A roll of paper has a uniform weight of 0.75 lb and is suspended from the wire hanger so that it rests against the wall. If the hanger has a negligible weight and the bearing at O can be considered...
-
How can you learn about your audiences hot buttons?
-
Prove that if \[d r_{t}^{i}=\left(\delta_{i}-k r_{t}^{i} ight) d t+\sigma \sqrt{r_{t}^{i}} d W_{t}^{i}, i=1,2\] where \(W^{i}\) are independent BMs, then the sum \(r^{1}+r^{2}\) is a CIR process....
-
Camco Manufacturers Inc., a publicly listed company, has two machines that are accounted for under the revaluation model. Technology in Camco's industry is fast-changing, causing the fair value of...
-
45-year-old female comes in with reduced vision for a day. She complained of severe headache with nausea and vomiting. Visual acuity was counting fingers, the conjunctiva was injected and the cornea...
-
Kendrick Anderson Furniture Maker, LLC creates custom tables in Atlanta. Assume that the following represents monthly information on production volume and manufacturing costs since the company...
-
Let X1, X2, ..., X, be i.i.d. random variables from a distribution with density fx (x; X) = Aexp(-Ax|), 0 < x < xo, where A> 0. Suppose we want to test Ho : = Xo against H1 : A # Xo. Show that a...
-
Under what conditions are short-term contracts preferable to long-term contracts?
-
You notice that your bank balance is lower than your checkbook balance. What could be the reason for this difference?
-
You develop a contract that contains specific language about transportation requirements, and the supplier agrees to it but later claims that it is not acceptable under the UCC. Who in your opinion...
-
Discuss any four tests you would do in the field to ensure work is completed correctly that were covered in the first three units? Include the name, how performed and why the test is important.
-
Which expression can be used to end the loop when the user enters q to stop iterating i=0 key = while print(i) i+=1 key=input("Continue? (enter q to stop) ")
-
1.2.5* Recall the Triangle Inequality |a + b |a| + |b| for real numbers a and b. (a) Prove that a - b |a| + |b. When is equality achieved? (b) Prove the Reverse Triangle Inequality ||a|-|b|| < |a -...
-
Suppose that a business sells 6-month subscriptions to its monthly magazine. On January 1, the company receives a total of $600 for 10 subscriptions. To record this transaction, the company debits...
-
Batches of customer payments on account are processed manually in the cashiers office. Clerks open the payments, separate the checks and the remittance advices, and prepare a batch control total (two...
-
What are the differences between approving vendor invoices covering services rendered and those for physical goods sent to an organization? Illustrate with several examples.
-
The following figure is a portion of a business process diagram for an order- entry system. 1. Pull Goods. 2. Verify credit. 3. Shipping report. 4. Customer purchase order. 5. Notify customer. 6....
-
The following are some costs incurred by a shoe manufacturer. Decide whether each one is a fixed cost or a variable cost or has some element of both. (a) The cost of leather; (b) The fee paid to an...
-
Why does the marginal cost curve pass through the bottom of the average cost curve and the average variable cost curve?
-
Outline the main factors that might influence the size of the profit mark-up set by a business.
Study smarter with the SolutionInn App