
Description: A doctor has recently opened a surgery and is getting concerned at the amount of time some of his patients are waiting before he gets time time see them. The doctor has asked you to create a simple program that will allow the doctor to keep track of how long the patients have been waiting. Once the program has started running the program must start off by welcoming the user to the surgery.
Once this has been done, the program must then:
ââ??Â? Ask the user to enter in their first name
ââ??Â? Ask the user to enter in their second name
After this, the program must then give the patient a unique ticket number and print it to the screen in the following format, along with the current time and the persons name:
Time: current_time Thank you, NAME HERE
Your ticket number is: 203 Please wait to be seen by the doctor..This information should be stored in memory in the form of an object and also wrote to a text file once a new record has been made.
If the user at any time chooses that they no longer want to see the doctor, an option should exist that allows the user to enter in their ID number, and they would then be removed from the in memory queue (not from the text file!).A doctor section should also exist, that allows the doctor to view a list of all the patients that have left to be seen.
Once the doctor has finished seeing the patient, an option should exist to allow the doctor to remove the patient from the in memory queue by their ID number.
Menu System
Your program must be user friendly and have a simple menu system that will allow the user to input if they are a patient or a doctor, and enter whichever option they choose.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.