Question: Write a program that ask the user for a file with a letter matrix and a word to find in that matrix. The matrix file,

Write a program that ask the user for a file with a letter matrix and a word to find in that matrix. The matrix file, the first line of the file is the number of rows and the second line is the number of columns. When looking for a word in the matrix it should be case insensitive. Your program should then find a continuous path thought the matrix that spells the word. Your program should only move left (col -1), right(col +1), up (row -1) and down (row+1). If there is such a path in the matrix,that path should be printed to console, using V for down, ^ for up, > for right,

Your efforts are appreciated. Thank you very much !

Write a program that ask the user for a file with a

letter matrix and a word to find in that matrix. The matrix

CPSC 1160: ASSIGNMENT 3[25 MARKS] Write a program that ask the user for a file with a letter matrix and a word to find in that matrix. The matrix file, the first line of the file is the number of rows and the second line is the number of columns. When looking for a word in the matrix it should be case insensitive. Your program should then find a continuous path thought the matrix that spells the word. Your program should only move left (col-1), right(col +1), up (row -1) and down (row+1). If there is such a path in the matrix, that path should be printed to console, using 'V' for down," for up,>' for right,'' for right,'

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!