Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started