Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Nurse class, checkPatient() function firstly decreases starvationRate 10 points. Then, displays a message that The patient named..... checking. > Call takeACare() function of related

image text in transcribed

In Nurse class, checkPatient() function firstly decreases starvationRate 10 points. Then, displays a message that The patient named..... checking." > Call takeACare() function of related patient. Display a message "(name surname) took care of the patient.. Then, controls checkStarvation(). If it returns true, displays a message like (name surname) is starving!". Destructor displays a message "name surname) quit being a Nurse in this center!" In Patient class, > checkStarvation() also controls the starvationRate. If the starvationRate less than 50, the function returns true, otherwise returns false. takeACare() function, firstly decrease starvationRate 15 points. Then, controls checkStarvation(). If it returns true, displays a message like Patient: name is hungry!!!" Destructor gives a message that "name surname was discharged!" In your main function. Create an object from Doctor, Nurse and Patient class with the following data given below; Doctor: name David, surname Tennant, age 49, employeeld 181971. Nurse: name Jodie, surnmae Whittaker, age 38, employeeld 171982. Patient: name Matt, surname Smith, age 37 diseaseName xyzxyz. Display full name of all people in the health center. Then, 5 times, firstly display nurse's name and call the checkPatiento function of it with the patient object as a parameter, then display doctor's name and call the checkPatiento function of it with patient object as a parameter. Sample Run 1: All people in this health center: David Tennant Jodie Whittaker Matt Smith In Nurse class, checkPatient() function firstly decreases starvationRate 10 points. Then, displays a message that The patient named..... checking." > Call takeACare() function of related patient. Display a message "(name surname) took care of the patient.. Then, controls checkStarvation(). If it returns true, displays a message like (name surname) is starving!". Destructor displays a message "name surname) quit being a Nurse in this center!" In Patient class, > checkStarvation() also controls the starvationRate. If the starvationRate less than 50, the function returns true, otherwise returns false. takeACare() function, firstly decrease starvationRate 15 points. Then, controls checkStarvation(). If it returns true, displays a message like Patient: name is hungry!!!" Destructor gives a message that "name surname was discharged!" In your main function. Create an object from Doctor, Nurse and Patient class with the following data given below; Doctor: name David, surname Tennant, age 49, employeeld 181971. Nurse: name Jodie, surnmae Whittaker, age 38, employeeld 171982. Patient: name Matt, surname Smith, age 37 diseaseName xyzxyz. Display full name of all people in the health center. Then, 5 times, firstly display nurse's name and call the checkPatiento function of it with the patient object as a parameter, then display doctor's name and call the checkPatiento function of it with patient object as a parameter. Sample Run 1: All people in this health center: David Tennant Jodie Whittaker Matt Smith

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

Step: 3

blur-text-image

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

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions