(Need this code in c++ language only and do it with linked list)…

Question Answered step-by-step (Need this code in c++ language only and do it with linked list)… (Need this code in c++ language only and do it with linked list)#linkedlistYour task is to develop a program for a hospital where they need help to calculate and maintain thenumber of patients, their disease, and their allotted room numbers. You will use a list node to store recordof a patient such as patient name, patient CNIC, patient disease, admit date and patient allotted roomnumber.Suppose if a patient has been recovered then, you will need to delete his Node from the list (Use allmethods 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 return successstatus of the operation.Whenever a new patient is arrived at the hospital for admitting in a room. The system will use anotherfunction AdmitPatient() that takes patient’s information, checks the availability of a room (assume thathospital only have 20 rooms and only one patient per room is allowed). If multiple rooms are available,then always allocate room with lowest number. Otherwise, print message that no room is available andreturn false.Last thing is to equip your program with a search tool. Whenever, the user opts to search for a patient,the system should ask for a list of search possibilities (i.e., search by room number, search by CNIC, searchby Disease name etc.). For example, if user opt to search using the CNIC, the system should ask for CNICfrom the user, search the node with CNIC and print the information of the patient in this node. If there isno patient with the provided CNIC, then the system should print a proper message. Engineering & Technology Computer Science Share QuestionEmailCopy link Comments (0)