Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The code in java language, and draw the uml class diagram Exercise 1: Draw a UML Class diagram, based on the following program specifications. A

The code in java language, and draw the uml class diagram

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

What is meant by Career Planning and development ?

Answered: 1 week ago

Question

What are Fringe Benefits ? List out some.

Answered: 1 week ago