Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A two-dimensional array consists of patients' names and IDs in a private clinic is given in Figure 4. Replace YourName and YourStudentNumber with your
A two-dimensional array consists of patients' names and IDs in a private clinic is given in Figure 4. Replace "YourName" and "YourStudentNumber" with your particulars. data[9][2] {"YourName", "YourStudentNumber", "Zulhairi bin Husin","MA19800620", "Chan Yin Chin","MC20200315", "Saravanan a/l Mutusamy","MA19850219", "Mah Yee Ching", "FA19770422", "Siti Nurhaliza","FC20151128", "Filzah Ali Hasan","FA19901230", "Vivionah Asoi", "FC20100811", "Adriana Tobi","FB12345698"}; Figure 4. Write C++ programs to: a) Sort and display the list in ascending order based on the name or based on patient ID. (15 marks) b) Search for a particular name or ID. Print out "Registered" if found, else print out "Unregistered". (15 marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started