write a C++ Program
Your task is to develop a program for a hospital where they need help to calculate and maintainthe number of patients, their disease, and their allotted room numbers. You will use a SinglyLinkedList to store record of a patient such as patient name, patient CNIC, patient disease, admitdate and patient allotted room number.Suppose if a patient has been recovered then, you will need to delete his Node from the list (Useall methods of deletion Start, Middle, and End). The system will use a special function named asDichargePatient() that will take patient CNIC as parameter, remove node of the patient, and returnsuccess status of the operation.Whenever a new patient is arrived at the hospital for admitting in a room. The system will useanother function AdmitPatient() that takes patient’s information, checks the availability of a room(assume that hospital only have 20 rooms and only one patient per room is allowed). If multiplerooms are available, then always allocate room with lowest number. Otherwise, print message thatno room is available and return false.Last thing is to equip your program with a search tool. Whenever, the user opts to search for apatient, the system should ask for a list of search possibilities (i.e., search by room number, searchby CNIC, search by Disease name etc.). For example, if user opt to search using the CNIC, thesystem should ask for CNIC from the user, search the node with CNIC and print the informationof the patient in this node. If there is no patient with the provided CNIC, then the system shouldprint a proper message.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here