Question: Alpha can move around the space based on user's input. The user enters either N, E, S, or W, meaning the direction of the movement,

Alpha can move around the space based on user's input. The user enters either N, E, S, or W, meaning the direction of the movement, and press "Enter". Alpha moves one step forward to the specified direction. If Alpha reaches a star, the program terminates. If the movement exceeds the boundary, it will remain in the current position. For each movement, the program will print out the updated map. Your program should have at least two newly defined functions, other than main()

Your program should look like below:

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 Programming Questions!