Question: Function Name: wordSearch Inputs: 1. (char) The unsolved puzzle, an MxN character array 2. (char) A PxQ array, with a different word on each line

 Function Name: wordSearch Inputs: 1. (char) The unsolved puzzle, an MxN

character array 2. (char) A PxQ array, with a different word on

Function Name: wordSearch Inputs: 1. (char) The unsolved puzzle, an MxN character array 2. (char) A PxQ array, with a different word on each line Outputs: 1. (char) The MxN solved puzzle 2. (double) A Px2 array of the row and column indices of the first letter of each word Function Description: Fed up with only being able to search for one word at a time with your quibbler function, you decide to write a new function to solve word searches completely! You will be given an MxN character array of lowercase letters containing the wordsearch, and a PxQ character array containing a different word to search for on each line. Since you cannot have a jagged array, some of the the words will be followed by spaces. Find where each word occurs in the array, then replace all its letters in the array with . characters to indicate where it is. You must also output a Px2 array of the row and column indices of each word's starting letter, with the row indices in the left column and the column indices in the right column. Notes: Words may appear vertically or horizontally. They may be backwards or forwards. Words in the word list may be uppercase or lowercase Words may overlap in the array

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!