Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C Programming!! pure C, not c++!! Hello I need help with this question in my C p

ID: 3658954 • Letter: C

Question

C Programming!! pure C, not c++!! Hello I need help with this question in my C programming class. There is a simple algorithm for walking through a maze that generates finding the exit (assuming there is an exit). If there is not an exit, you will arrive at the starting location again. Place your right hand on the wall to your right and begin walking forward. Never remove your hand from the wall. If the maze turns to the right, you follow the wall to the right. As long as you do not remove your hand from the wall, eventually you will arrive at the exit of the maze. There may be a shorter path than the one you have taken, but you are guaranteed to get out of the maze. Your program needs to use a function generate_maze to generate a 10*10 maze first, and a function walk_maze to find a path. The maze starts at (0,0) ,and ends at (9,9). The # symbols represent the walls of the maze, and the period (.) represent squares in the possible paths through the maze. If the maze has an exit, your program needs to print out the path you walked. If not, print out

Explanation / Answer

#include #include #include #include #include using namespace std; void printmatrix(char print[10][10]){ for (int i=0;i