Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is in C not C++ This project takes an integer size and a filename as its two command-line a represents the n contains the

image text in transcribed

This is in C not C++

This project takes an integer size and a filename as its two command-line a represents the n contains the actual square matrix of these characters. As a quick example, consider the file datal that is shown at the right (a 5x5 puzzle) rguments. The size umber of rows and columns in a square matrix of characters. The filename specified For the puzzle above, you would specify 5 and data! as your two command-line arguments, as in . /a. out 5 data! With this example, a sample execution of the program is shown below (the user is searching for the word cat) The word puzzle is: ccati dogac otace gotac ecata Enter a word to find in the puzzle : cat Tbe word cat was found 6 times, as shown below 2 times written left-to-right 1 times written top-to-bottom 1 times written bottom-to-top 2 times written right-to-left .cat. .tac. . .tac .cat. Enter another word to find (or 'zzz' to exit) : zzz A couple of comments regarding how the game should be structured: The input matrix will be lowercase letters, as will the words that the user enters to find Words can be written left-to-right (normal English), right-to-left (backwards), top-to-bottom (each letter below the previous letter), and bottom-to-top (each letter above the previous letter)

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

Students also viewed these Databases questions

Question

What is electric dipole explain with example

Answered: 1 week ago

Question

What is digital literacy? Why is it necessary?

Answered: 1 week ago