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 be

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

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.

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
Retum 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 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 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. Please
analyse them carefully. If you have any questions do not hesitate to ask us.
Transcribed Image Text: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 Retum 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 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 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. Please analyse them carefully. If you have any questions do not hesitate to ask us.
Welcome to the Hospital Management System
e: Exit | 1: Show All Records | 2: Search Patient | 3: New Patient
Please select an option: 1
PATIENT RECORDS:
1
Dincel
dincele@hotmail.com.tr
Immunology
Emre
14/05/1989
3
Cansu
Kaya
31/08/1994
deneme01@gmail.com
Pathology
4
Ahmet
Gungor
02/12/1972
deneme03@deneme.com
Cardiology
15
Mahmut
Karadag
30/03/1987
test12345@gmail.com
Cardiology
6
Кaan
Каya
11/02/1983
kaya@deneme.com
Microbiology
e: Return to Main Menu | 1: Delete Record | 2: Update Record
Please select an option:
Figure 1: "Show All Records" option is selected.
30/03/1987
test12345@gmail.com
Mahmut
Karadag
Cardiology
kaya@deneme.com
Microbiology
Каan
Kaya
11/02/1983
Ali
Bitigen
21/12/1968
deneme@deneme.com
Internal_Medicine
e: Return to Main Menu | 1: Delete Record | 2: Update Record
Please select an option: 1
Patient Id: 7
Patient record is deleted...
9: Exit | 1: Show All Records | 2: Search Patient | 3: New Patient
Please select an option: 1
PATIENT RECORDS:
1
Emre
Dincel
14/05/1989
dinceleghotmail.com.tr
Immunology
Cansu
Кaya
31/08/1994
denemee1@gmai1.com
Pathology
4
Ahmet
Gungor
02/12/1972
denemee3edeneme.com
Cardiology
Mahmut
Karadag
30/03/1987
test12345@gmail.com
Cardiology
6
Кaan
Kaya
11/02/1983
kaya@deneme.com
Microbiology
e: Return to Main Menu | 1: Delete Record | 2: Update Record
Please select an option: 0
9: Exit | 1: Show All Records | 2: Search Patient | 3: New Patient
Please select an option:
Figure 2: Deleting a patient's record.
Transcribed Image Text:Welcome to the Hospital Management System e: Exit | 1: Show All Records | 2: Search Patient | 3: New Patient Please select an option: 1 PATIENT RECORDS: 1 Dincel dincele@hotmail.com.tr Immunology Emre 14/05/1989 3 Cansu Kaya 31/08/1994 deneme01@gmail.com Pathology 4 Ahmet Gungor 02/12/1972 deneme03@deneme.com Cardiology 15 Mahmut Karadag 30/03/1987 test12345@gmail.com Cardiology 6 Кaan Каya 11/02/1983 kaya@deneme.com Microbiology e: Return to Main Menu | 1: Delete Record | 2: Update Record Please select an option: Figure 1: "Show All Records" option is selected. 30/03/1987 test12345@gmail.com Mahmut Karadag Cardiology kaya@deneme.com Microbiology Каan Kaya 11/02/1983 Ali Bitigen 21/12/1968 deneme@deneme.com Internal_Medicine e: Return to Main Menu | 1: Delete Record | 2: Update Record Please select an option: 1 Patient Id: 7 Patient record is deleted... 9: Exit | 1: Show All Records | 2: Search Patient | 3: New Patient Please select an option: 1 PATIENT RECORDS: 1 Emre Dincel 14/05/1989 dinceleghotmail.com.tr Immunology Cansu Кaya 31/08/1994 denemee1@gmai1.com Pathology 4 Ahmet Gungor 02/12/1972 denemee3edeneme.com Cardiology Mahmut Karadag 30/03/1987 test12345@gmail.com Cardiology 6 Кaan Kaya 11/02/1983 kaya@deneme.com Microbiology e: Return to Main Menu | 1: Delete Record | 2: Update Record Please select an option: 0 9: Exit | 1: Show All Records | 2: Search Patient | 3: New Patient Please select an option: Figure 2: Deleting a patient's record.
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY