Answered step by step
Verified Expert Solution
Link Copied!

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

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

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_2

Step: 3

blur-text-image_3

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

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions

Question

a. How do you think these stereotypes developed?

Answered: 1 week ago

Question

7. Describe phases of multicultural identity development.

Answered: 1 week ago