The algorithm in Figure 1-16 does not get Robin (a robot) through the maze. Corr
ID: 3884935 • Letter: T
Question
The algorithm in Figure 1-16 does not get Robin (a robot) through the maze. Correct the algorithm. 1. Walk into the maze turn left 90 degrees repeat until you are directly in front of a wall: walk forward end repeat turn right 90 degrees repeat until you are directly in front of a wall: walk forward end repeat turn right 90 degrees 7 Repeat until you are directly in front of a wall: walk forward end repeat 8 turn right 90 degrees 9 Repeat until you are directly in front of a wall: walk forward end repeat 10 turn right 90 degrees 11 Repeat until you are directly in front of a wall: walk forward end repeat 12 turn right 90 degrees 13 Repeat until you are directly in front of a wall: turn right 90 degrees end repeat 14 repeat until you are out of the maze walk forward end repeatExplanation / Answer
8. turn left 90 degrees
10. turn left 90 degrees
12. turn right 90 degrees
13. repeat until you are directly infront of a wall :
walk forward
end repeat
14. turn left 90 degrees
15. repeat until you are directly infront of a wall :
walk forward
end repeat
16. turn right 90 degrees
17. repeat until you are out of the maze :
walk forward
end repeat
RATE UPVOTE THANK YOU..