Question: In C programming: -Use keyboard button wasd(w=up,a=left,s=down,d=right) to give instructions to an android and show its position in a 11*11 matrix. -The android should stop
In C programming:
-Use keyboard button wasd(w=up,a=left,s=down,d=right) to give instructions to an android and show its position in a 11*11 matrix.
-The android should stop if it hits a boundry.
-Use A to represent the android and * to represent a empty block.
-If your compiler doent support conio.h : use system("cls"); (for windows) or system(clear); (for linux) to clear the screen.

The initial matrix should look like this and needs to move 1 space in the direction of the user command.
I have Windows.
What would this C file look like?
k*xx*x* k*xx*x* k*xx*x* k*xx*x* k*xx*x* k*xx*x* k*xx*x* k*xx*x* k*xx*x*
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
