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".
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
Related questions
Question
My name : Gleen Billmore
Student ID: BM21110021
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps
Knowledge Booster
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.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage