Can someone please help me with this code? I am fairly new to programming and don't want this code to fail. I am having a hard time doing this.
1) Add the binarySearch function to the program
2) Change the binarySearch function to work with strings rather than integers
3) Prompt user for animal name
4) Call the binarySearch function to search for the animal name
5) Provide a message to the user indicating that the animal name was found or not found in the list (array)
1 2 3 4 5 6 7 8 9 10 11 12
#include <iostream>
usingnamespace std;
void main()
{
constint NUM_NAMES = 10;
string names[NUM_NAMES] = { "baboon", "giraffe", "hippopotamus", "lion", "monkey", "rhinoceros", "tapir", "tiger", "wildebeest", "zebra" };
//Insert your code to complete this program
return;
}