Question: In C++ void selectionSort(vector &arr) { for(int i = 0; i arr[j]) { swap(arr[i], arr[j]); } } } } int binarySearch(vector arr, int from, int
In C++
void selectionSort(vector
int binarySearch(vector
int mid = (from + to) / 2; if (arr[mid] == value) return mid; else if (arr[mid]
Implement this algorithm in C++ and test its correctness. Write a main() function to a. input a set of numbers from an input file into a vector, b. call and pass the vector to selection sort, and
c.display the sorted numbers.
Use the following input file
![In C++ void selectionSort(vector &arr) { for(int i = 0; i arr[j])](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3a23934137_80966f3a2391f3a8.jpg)
D. to prompt the user for a number to search (until ^D) and display the position of the number in the sorted vector. Try your program for the following user input
![{ swap(arr[i], arr[j]); } } } } int binarySearch(vector arr, int from,](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3a239a00b6_80966f3a2396093f.jpg)
The output should be:

55050 215-342m
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
