Question: Need C + + help Instructions Write a version of the binary search algorithm that can be used to search a list of strings. (

Need C++ help
Instructions
Write a version of the binary search algorithm that can be used to search a list of strings. (Use the selection sort that you designed in Exercise 8 to sort the list.) Write a program to test the function and prompt the user to enter 10 strings. The program should output the position of the string if found in the list and the following message if not:
x is not in the list
My problem lies in the rubric:
Status: FAILED!
Check: 1
Test: Binary search on an ordered list
Reason: Unable to find '['b is found at position 1']' in the program's output.
Enter string 1: Enter string 2: Enter string 3: Enter string 4: Enter string 5: Enter string 6: Enter string 7: Enter string 8: Enter string 9: Enter string 10: Enter a string to search for: b is found at position 2
.
Error : AssertionError - Unable to find b is found at position 1 in the program's output.
Status: FAILED!
Check: 2
Test: Binary search on an unordered list
Reason: Unable to find '['c is found at position 1']' in the program's output.
Enter string 1: Enter string 2: Enter string 3: Enter string 4: Enter string 5: Enter string 6: Enter string 7: Enter string 8: Enter string 9: Enter string 10: Enter a string to search for: c is found at position 4
.
Error : AssertionError - Unable to find c is found at position 1 in the program's output.
Status: PASSED!
Check: 3
Test: Searching for a missing item
Reason: None
I could post my main.cpp but I think the one I wrote is wrong because I ask help before to fix it but it lead to nowhere and end it up realizing that it may be the entire program I wrote is the problem.
Please take your time and remember to check if its runnable, ty.

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!