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
Get step-by-step solutions from verified subject matter experts
