Problem:
Question- Write a driver program to test the functionality of created classes. The driver program should create a Hospital object and a number of patients using dynamic memory allocation. The patients should be admitted and discharged from the hospital. The discharged patients should be destroyed and dynamic memory released.
Please describe the code with the help of comments.