Question: C++ Program a. Create three vectors of 10+ students records including IDs, student names, and the corresponding e-mail addresses, student IDs not sorted in order.

C++ Program

a. Create three vectors of 10+ students records including IDs, student names, and the corresponding e-mail addresses, student IDs not sorted in order.

b. Sort the above data by student IDs using selection sorting.

c. Sequential Search five IDs which are from the sorted vectors and a 6th ID which is not from the vector.

d. Binary Search five IDs which are from the sorted vector and a 6th ID which is not from the vector.

e. Execution and output:

1. Display the original unsorted vector of student records.

2. Display the sorted vector result of student records.

3. Display the sequential search result of student records.

4. Display the binary search result of student records.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!