Wednesday, 23 October 2013

Hospital Exercise - Link list



Create a Doctor class that have all appropriate details of Doctor Profiles.




Create a Patient  linked-list header class that link a list of PatientNodes.

Each of the PatientNodes object should contains data such as Name , Id and other appropriate variable ( ward no , sickness ) . Add a doctor to the node as the appointed doctor for the patient.


PatientList header class should also be able to do operation of
i )  adding  ( only  to the tail ) ,
ii)  traversing and  printing the node data.
iv) remove a patient from the list
Create a Driver class that add 10 patient to the list and give the option to delete a patient based on his name or id. Print the list before and after the deletion of the patient name.

No comments:

Post a Comment