Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Algorithms

Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest

3rd edition

978-0262033848

More Books

Students also viewed these Programming questions

Question

Which of the following is not true about big data?

Answered: 1 week ago

Question

2x 2x 2x3 4 2X2 2 x 5x 2x3 1 8 x x 4x 11 2 + 2X2 = 4

Answered: 1 week ago