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
MPIn this program, you will read data from an input file. The file has an by 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 dim array of size by 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 topleft See example file:ABNEKZUXNVCIPWKLCIEZTEFRBAFITPTGUITSYMLHTRAINJHOJBRKEWDSAKZIQPFTFitPetCatGhostDogOutput:WordRowColumnDirectionFitHorizontalPetDiagonalCatDiagonalGhostVerticalDogNot foundRequirements: 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 twodimensional array Make sure your output shows the by array just like the sample above
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
