Question: Character query and integer numData are read from input. Then, numData alphabetically sorted characters are read from input and each character is appended to a

 Character query and integer numData are read from input. Then, numDataalphabetically sorted characters are read from input and each character is appendedto a vector. Complete the FindData() function: - If query is alphabeticallybefore the element at index middlelndex of the vector, output "search lower

Character query and integer numData are read from input. Then, numData alphabetically sorted characters are read from input and each character is appended to a vector. Complete the FindData() function: - If query is alphabetically before the element at index middlelndex of the vector, output "search lower half" and recursively call FindData( to find query in the lower half of the range. - Otherwise, output "search upper half" and recursively call FindData() to find query in the upper half of the range. End each output with a newline. Ex: If the input is: 05acg0x then the output is: search upper half

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!