Question: hd . addMember ( Mason Moore, Daniel Roberts, Nurse ) ; hd . addMember ( Mason Moore, Victoria Stewart, Radiologist ) ; hd

hd.addMember("Mason Moore", "Daniel Roberts", "Nurse");
hd.addMember ("Mason Moore", "Victoria Stewart", "Radiologist");
hd.addMember ("Mason Moore", "Tyler Campbell", "Medical Assistant");
hd.addMember ("Mason Moore", "Hannah Martin", "Paramedic");
hd.addMember ("Michael Johnson", "Jack Allen", "Patient Care Technician");
hd.addMember ("Michael Johnson", "Oliver Nelson", "Anesthesiologist");
hd.addMember ("Michael Johnson", "Sophia Rivera", "Pathologist");
hd.addMember ("Michael Johnson", "Evan Hall", "Laboratory Technician");
hd.addMember ("Michael Johnson", "Megan Price", "Nurse");
hd.addMember ("Ava Taylor", "Brianna Reed", "Dietitian");
hd.addMember ("Charlotte Garcia", "Oliver Nelson", "Anesthesiologist");
hd.addMember ("Charlotte Garcia", "Trevor Jenkins", "Medical Equipment Technician");
hd.addMember ("Charlotte Garcia", "Justin Flores", "Speech-Language Pathologist");
hd.showPatient("Mason Moore");
hd.showPatient("Michael Johnson");
hd.removeMember("Michael Johnson", "Evan Hall");
hd.showPatient("Michael Johnson");
hd.showDoctorPatients("Olivia Sanchez");
hd.showDoctorPatients("Emma Thompson");
hd.showPatients(2022); this codes in main does not exist .add methods according this and write all code Output of the Example Test Code:
For the test code that is given above, you will see the following output on the screen.
---none---
INFO: Patient Michael Johnson has been added
INFO: Patient Ethan Lee has been added
INFO: Patient Noah Miller has been added
INFO: Patient Liam Davis has been added
INFO: Patient Ava Taylor has been added
INFO: Patient Mason Moore has been added
INFO: Patient Charlotte Garcia has been added
ERROR: Patient Noah Miller overwritten
Noah Miller, 2019, Olivia Sanchez
Ethan Lee, 2020, Olivia Sanchez
Mason Moore, 2021, William Anderson
Liam Davis, 2022, Isabella Martinez
Michael Johnson, 2022, Emma Thompson
Charlotte Garcia, 2023, Lucas Lewis
Ava Taylor, 2024, Isabella Martinez
INFO: Patient Ava Taylor has been removed
Noah Miller, 2019, Olivia Sanchez
Ethan Lee, 2020, Olivia Sanchez
Mason Moore, 2021, William Anderson
Liam Davis, 2022, Isabella Martinez
Michael Johnson, 2022, Emma Thompson
Charlotte Garcia, 2023, Lucas Lewis
Michael Johnson
19/12/2022
Emma Thompson
INFO: Daniel Roberts has been added to the patient Mason Moore
INFO: Victoria Stewart has been added to the patient Mason Moore
INFO: Tyler Campbell has been added to the patient Mason Moore
INFO: Hannah Martin has been added to the patient Mason Moore
INFO: Jack Allen has been added to the patient Michael Johnson
INFO: Oliver Nelson has been added to the patient Michael Johnson
INFO: Sophia Rivera has been added to the patient Michael Johnson
INFO: Evan Hall has been added to the patient Michael Johnson
INFO: Meghan Price has been added to the patient Michael Johnson
ERROR: Patient Ava Taylor does not exist
INFO: Oliver Nelson has been added to the patient Charlotte Garcia
INFO: Trevor Jenkins has been added to the patient Charlotte Garcia
INFO: Justin Flores has been added to the patient Charlotte Garcia
Mason Moore
7/6/2021
William Anderson
Daniel Roberts, Nurse
Hannah Martin, Paramedic
Tyler Campbell, Medical Assistant
Victoria Stewart, Radiologist
Michael Johnson
19/12/2022
Emma Thompson
Evan Hall, Laboratory Technician
Jack Ellen, Patient Care Technician
Meghan Price, Nurse
Oliver Nelson, Anesthesiologist
Sophia Rivera, Pathologist
INFO: Evan Hall has been removed from the patient Michael Johnson
Michael Johnson
19/12/2022
Emma Thompson
Jack Ellen, Patient Care Technician
Meghan Price, Nurse
Oliver Nelson, Anesthesiologist
Sophia Rivera, Pathologist
8
Olivia Sanchez
Ethan Lee, 8/9/2020
Noah Miller, 27/2/2019
Emma Thompson
Michael Johnson, 19/12/2022
2022
Michael Johnson, 19/12
Liam Davis, 3/4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!