Question: I need help writing this program. For this project, we are going to take you back to your grade school days. Specifically, you will write

I need help writing this program.  I need help writing this program. For this project, we are

For this project, we are going to take you back to your grade school days. Specifically, you will write a simple word search game, similar to those puzzles that you were given in second or third grade right before a holiday. With those puzzles,you were given a square matrix of letters and you had to find words like turkey and pilgrim and mayflowerbefore Thanksgiving, and words like santa and snow and elfbefore Christmas c c a ti This project takes an integer size and a filename as its rwo command-line arguments. The size represents the number of rows and columns in a square matrix of characters. The filename specified t 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): a ce 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 ca 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 (cach letter above the previous letter). We have configured this project and its grading so that you can approach it in pieces. Start by getting the program to read (and print) the data file. Then tackle finding words that are written left-to-right. Once you have left-to-right implemented pick another direction and implement that. Continue until you have written all four directions Create a directory project5 on your machine. In that directory, create a file named words.c In words.c, write the code nceded to implement this program. Make sure that you include a header block of . your name and a brief overview of the program comments with . You must use a two-dimensional dynamic array for this project, as different data sets have different sizes .You must use at least three functions in this program. * To submit your project, first bundle your project5 directory into a single (compressed) zip file. Once you have a zap file that contains your projects code submit that fille to Blackboard

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!