A two-dimensional array consists of patients' names and IDs in a private clinic is given in Figure 6. Replace "YourName" and "YourStudentNumber" with your particulars. data[9][2] = {"YourName","YourStudentNumber", "Zulhairi bin Husin","MA19800620", "Chan Yin Chin","MC20200315", "Saravanan all Mutusamy","MA19850219", "Mah Yee Ching","FA19770422", "Siti Nurhaliza","FC20151128", "Filzah Ali Hasan","FA19901230", "Vivionah Asoi", "FC20100811", "Adriana Tobi","FB12345698"}; Figure 6. Write C++ programs to: a) Sort and display the list in ascending order based on the name or based on patient ID. b) Search for a particular name or ID. Print out "Registered" if found, else print out "Unregistered".

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter12: Points, Classes, Virtual Functions And Abstract Classes
Section: Chapter Questions
Problem 29SA
icon
Related questions
Question

My name : Gleen Billmore

Student ID: BM21110021

A two-dimensional array consists of patients' names and IDs in a private dinic is given in
Figure 6. Replace "YourName" and "YourStudentNumber" with your particulars.
data[9][2] = {"YourName","YourStudentNumber",
"Zulhairi bin Husin","MA19800620",
"Chan Yin Chin","MC20200315",
"Saravanan all Mutusamy","MA19850219",
"Mah Yee Ching","FA19770422",
"Siti Nurhaliza","FC20151128",
"Filzah Ali Hasan","FA19901230",
"Vivionah Asoi", "FC20100811",
"Adriana Tobi","FB12345698"};
Figure 6.
Write C++ programs to:
a) Sort and display the list in ascending order based on the name or based on patient ID.
b) Search for a particular name or ID. Print out "Registered" if found, else print out
"Unregistered".
Transcribed Image Text:A two-dimensional array consists of patients' names and IDs in a private dinic is given in Figure 6. Replace "YourName" and "YourStudentNumber" with your particulars. data[9][2] = {"YourName","YourStudentNumber", "Zulhairi bin Husin","MA19800620", "Chan Yin Chin","MC20200315", "Saravanan all Mutusamy","MA19850219", "Mah Yee Ching","FA19770422", "Siti Nurhaliza","FC20151128", "Filzah Ali Hasan","FA19901230", "Vivionah Asoi", "FC20100811", "Adriana Tobi","FB12345698"}; Figure 6. Write C++ programs to: a) Sort and display the list in ascending order based on the name or based on patient ID. b) Search for a particular name or ID. Print out "Registered" if found, else print out "Unregistered".
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage