Question: Define two prototype functions. The first prototype is named sort and expects an array of characters and a constant that specifies the length of the

 Define two prototype functions. The first prototype is named sort andexpects an array of characters and a constant that specifies the lengthof the array. It retums no value. The second prototype is namedsearch with three parameters: an array of characters, a constant that specifies

Define two prototype functions. The first prototype is named sort and expects an array of characters and a constant that specifies the length of the array. It retums no value. The second prototype is named search with three parameters: an array of characters, a constant that specifies the length of the array, and a target character to look for. It returns the index where the target character is found in the array. If there are multiple matches, the first index is returned. If no match exists. -1 is returned. Write a main function that declares an array of ten characters. Use a loop to allow the user enter a char for each element. Pass the array to the sort function. The prompt the user to enter a char. Pass the sorted array and the entered char to the search function. Store the returned value in a variable and output it to the console. Warning: Be diligent entering your solution below. Pay special attention to typos. The compiler will be used as the source of truth. You will not receive credit if it does not compile. You must also follow proper formatting and coding standards. Solution #include using namespace std; void sort(char array8.const int SIZE); int search(char array(), const int SIZE, char target); int maino const int SIZE - 10: char array[ SIZE: for (int i = 0; i > target; [ Select ] if( [Select] cout

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!