Write a program with the following features for a hospital management system: - There should be 4 options with sub-options in the main menu: o Exit o Show All Records Return to Main Menu Delete Record Update Record o Search Patient Return to Main Menu Search by ID Search by Name Search by Surname o New Patient - Sub-options for the particular option must appear when the corresponding option is selected from the main menu. - Patients must be added to the system with Name, Surname, Birthday, E-mail and Department information. The ID number is assigned by the program automatically as one more than the last ID number in the file. - If there exists more than one patient with the same name/surname, search by name/surname process must put the information of each patient with the same name/surname, not just the first one it has found. - Patient information must be kept in a text file. - If any of these processes fail, an error notification must be returned for that specific process. A number of output examples of the program you need to write are given in the figures below.
IT SHOULD BE DONE BY C LANGUAGE PLEASE NOT JAVA OR ELSE.
Write a program with the following features for a hospital management system:
- There should be 4 options with sub-options in the main menu:
o Exit
o Show All Records
Return to Main Menu
Delete Record
Update Record
o Search Patient
Return to Main Menu
Search by ID
Search by Name
Search by Surname
o New Patient
- Sub-options for the particular option must appear when the corresponding option is
selected from the main menu.
- Patients must be added to the system with Name, Surname, Birthday, E-mail and
Department information. The ID number is assigned by the program automatically as
one more than the last ID number in the file.
- If there exists more than one patient with the same name/surname, search by
name/surname process must put the information of each patient with the same
name/surname, not just the first one it has found.
- Patient information must be kept in a text file.
- If any of these processes fail, an error notification must be returned for that specific
process.
A number of output examples of the program you need to write are given in the figures below.
Step by step
Solved in 2 steps