The code in java language, and draw the uml class diagram Exercise 1: Draw a UML Class
No answer yet for this question.
Ask a Tutor
Question:
The code in java language, and draw the uml class diagram
Transcribed Image Text:
Exercise 1: Draw a UML Class diagram, based on the following program specifications. A hospital appointment system has three types of users: patient, doctor, and nurse. 1. A patient must store information such as the patient's name, age, weight, height, date of birth, phone number, and ID. 2. 3. 15 /1 A doctor must store information such as the doctor's name, specialty area, phone number, and ID. A nurse must store information such as the nurse's name, phone number, and ID. The program also has an appointment class that holds the information about an appointment. It will store objects of the patient, doctor, and nurse involved in this particulate appointment object as well as the date and time of the appointment. Check the appointment date is to be a weekday, not a weekend. Keep track of the number of objects created from each class. Also, make sure to have getters and setters methods for each private attribute inside each class. Please do not rely on the default constructures that are created by java; code them yourself. The test class should create 3 patients, 2 doctors, and 2 nurses. Each patient should at least have an appointment. The program output will be a list of the appointments that the system has. The following photo is what the output is expected to look like. We have 3 Pateints and 2 Doctores and 2 Nurses and 3 Appointments Appointments details are as follows: Pateint name: Mohammad Doctor name: Nasser Nurse name: Marry Pateint name: Maha Doctor name: Nasser Nurse name: Marry Pateint name: Deem Doctor name: Mona Nurse name: Mona Exercise 2: Implement the UML diagram that you drew on Exercise 1. Include the output as a picture. 14 Exercise 1: Draw a UML Class diagram, based on the following program specifications. A hospital appointment system has three types of users: patient, doctor, and nurse. 1. A patient must store information such as the patient's name, age, weight, height, date of birth, phone number, and ID. 2. 3. 15 /1 A doctor must store information such as the doctor's name, specialty area, phone number, and ID. A nurse must store information such as the nurse's name, phone number, and ID. The program also has an appointment class that holds the information about an appointment. It will store objects of the patient, doctor, and nurse involved in this particulate appointment object as well as the date and time of the appointment. Check the appointment date is to be a weekday, not a weekend. Keep track of the number of objects created from each class. Also, make sure to have getters and setters methods for each private attribute inside each class. Please do not rely on the default constructures that are created by java; code them yourself. The test class should create 3 patients, 2 doctors, and 2 nurses. Each patient should at least have an appointment. The program output will be a list of the appointments that the system has. The following photo is what the output is expected to look like. We have 3 Pateints and 2 Doctores and 2 Nurses and 3 Appointments Appointments details are as follows: Pateint name: Mohammad Doctor name: Nasser Nurse name: Marry Pateint name: Maha Doctor name: Nasser Nurse name: Marry Pateint name: Deem Doctor name: Mona Nurse name: Mona Exercise 2: Implement the UML diagram that you drew on Exercise 1. Include the output as a picture. 14
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
You buy a 1 0 - year bond that will mature for $ 1 , 0 0 0 and has a coupon rate of 1 2 percent. paid semi - annually ( $ 6 0 every six months ) . Also, the yield - to - maturity ( YTM ) on this bond...
-
Question: What as the average weekly safety inventory level of refined sugar from the beginning January 2022 to the end of July 2022? A. 512,465.9691 metric tons per week B. 316,002.1474 metric tons...
-
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...
-
17. [1.1/2 Points] DETAILS PREVIOUS ANSWERS MY NOTES ASK YOUR TEACHER Write the composite function in the form f(g(x)). [Identify the inner function u-g(x) and the outer function y=f(u).) (Use...
-
A violinist and a pianist simultaneously sound notes with frequencies of 436 Hz and 440 Hz, respectively. What beat frequency will the musicians hear?
-
What problems does blockchain sharding solve?
-
The accounting principle that prescribes accounting information be based on actual cost and requires assets and services to be recorded initially at the cash or cash-equivalent amount given in...
-
At December 31, 2013, Finzelberg Company had a credit balance of $15,000 in Allowance for Doubtful Accounts. During 2014, Finzelberg wrote off accounts totaling $11,000. One of those accounts...
-
Portions of the financial statements for Myriad Products are provided below. MYRIAD PRODUCTS COMPANY Income Statement For the Year Ended December 31, 2021 Sales ($ in millions) Cost of goods sold...
-
3x 71. If =30, then x=? 2 . 8.4 b. 20 . 15 d. 6
-
Herbalife continues to be a successful direct selling company despite various accusations of improper activity over the yearsmost recently Bill Ackmans campaign to prove it is a pyramid scheme. In...
-
CVS is implementing strategies and allocating resources in the hope of achieving an ethical culture that benefits all stakeholder groups. This helps CVS to maximize ethical decision making and remain...
-
The example of Enron shows how an aggressive corporate culture that rewards high performance and gets rid of the weak links can backfire. Enrons culture encouraged intense competition, not only among...
-
Despite its continued conflict with the EU government over its tax arrangements, Apple appears optimistic about its future. The company has created a cult following of consumers who are intensely...
-
PepsiCo is the classic business success story, starting with one mans invention to becoming a multimillion dollar enterprise with operations across the globe. With success comes controversy, which...
-
For this new product, assume the role of marketing manager. State the four stages of a product life cycle. Indicate the typical changes in the marketing mix variables that occur and change over this...
-
1-Stern observed all of the following results EXCEPT _______ in his experiment. A-one of the recombinant phenotypes was associated with an X chromosome of normal length B-the number of car, B+ male...
-
When engaging in strategic planning, company management often prepares a SWOT analysis. a. Based on an internet search, explain a SWOT analysis, and its usefulness in the planning process. b. Choose...
-
People, as well as businesses, need to budget. Assume that you have recently moved to an apartment with significantly higher rent than your previous apartment, and you are now experiencing financial...
-
Caleb Corp. has prepared the following unit sales forecast for 2021: Estimated ending Finished Goods Inventories are 50,000 units at December 31, 2020; 72,000 units at June 30, 2021; and 120,000...
Study smarter with the SolutionInn App