Question: write a c++ program In a hospital there are a number of department based on disease. Major department exist are Dermatology, Cardiology, Gynecology, Pathology, etc.
write a c++ program
In a hospital there are a number of department based ondisease. Major department exist are Dermatology, Cardiology, Gynecology, Pathology, etc. Each department is capable to serve the patient in increasingly fair manner. To avail the treatment facility, patient visits to the relevant department where (s)he is allotted a token number. Allotment of token number is purely on the basis of arrival time. Separate queue is maintained for each department.
Hospital maintains the following information about thepatient.
Patient Information
S.No | Information | Type of Information |
1 | Patientid | Stores in alphanumeric |
2 | Social_id | Numeric value |
3 | Occupation | Character value |
4 | Disease reported | Character value |
5 | Treatment prescribed | Character value |
6 | Previous treated | Yes/No |
7 | Token number | Number |
8 | dateofVisit | Date |
Based on the above information, solve the followingchallenges the hospital has to encounter.[Write functions with appropriate data structures for each case]
[Hint: queue Data structure can be considered]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
