Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

3. What are potential solutions?

Answered: 1 week ago

Question

4. I can tell when team members dont mean what they say.

Answered: 1 week ago