Question: MP 6 In this program, you will read data from an input file. The file has an 8 by 8 table of letters, followed by

MP6In this program, you will read data from an input file. The file has an 8 by 8 table of letters, followed by a set of words to search for. Your job is to write a program that reads the table, fills it into a 2-dim array of size 8 by 8, and finds the words in the table. The output should be the location (row, column) and direction of each of the words given to look for, or it should indicate that the word could not be found. Words can come in the table horizontal (left to right), vertical (top, down), or diagonal (top-left). See example file:ABNEKZUXNVCIPWKLCIEZTEFRBAFITPTGUITSYMLHTRAINJHOJBRKEWDSAKZIQPFTFitPetCatGhostDogOutput:WordRowColumnDirectionFit32HorizontalPet14DiagonalCat20DiagonalGhost37VerticalDogNot foundRequirements:1.) Break up the problem into smaller functions and get each one working before going on to the next. Concentrate first on how to build the two-dimensional array.2.) Make sure your output shows the 8 by 8 array just like the sample above

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!