Question: data structure c++ please fast Lab Work: In this Lab you will implement a simple hospital system, the hospital have three doctors, list of patient,
data structure c++ please fast

Lab Work: In this Lab you will implement a simple hospital system, the hospital have three doctors, list of patient, and infinite number of rooms. For this system you need to create three classes: First class: Create a PERSON class which includes the name, age, and gender of the person. For this class you need to implement a constructor, destructor, print, set, and get functions for all data members. Second class: Create a PATIENT class derived from the person class, for the patient class add the following attribute the patient room_number, medicine, and department he treatment in. Also implement a set, get, and print functions. Third class: Create a DOCTOR class derived from the person class, for this class add the following attributes a List of patients the doctor treatment (size=10), int variable to keep track with the patient added or removed from the list, implement the functions you need for this class. Write a menu driven program to test your code providing the following options: 1- Load File: read the Patients info from a text file then add them to the doctor whose list of patient is not full. 2- Add New Patient: this option should read the patient information from the user and add the patient to the doctor whose list of patient is not full. 3- Remove Patient: this option takes the patient room_number then remove the patient from the doctor list and frees one space for a new one. 4- Display the patients for a specific doctor: this option takes the doctor name and print the list of patients related to this doctor. 5- Print patient information: this option should take a patient room number and print all information for that patient. 6- Store Data: Store the information of all patient in a text file. 7- Exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
