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".
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
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
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT