Question: 1.Write a function that will sort an array of strings using selection sort 2.Write a function that will perform a binary search on an array
1.Write a function that will sort an array of strings using selection sort
2.Write a function that will perform a binary search on an array of strings
3.Write a driver program that will:
.read a list of names from "names.txt" (one name per line)
.sort the names
.display the names in sorted order
.allow the user to type in a name
.display where in the array the user typed name is (-1 if it is not in the array)
This is C++. The function for the require number 3 is the main function that execute the function 1 and 2.
Please make sure the program run properly and readable. This is the third time I post this question in a day.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
