(POGIL) Write an algorithm using the 4 simple commands to navigate the robot through the maze in the POGIL question listed in your on-line textbook.
Answer
1. move forward 2
2. Turn Right
3.move forward 4
4. turn left
5.move forward 2
(POGIL) Write an algorithm using repetition control structures to navigate the robot through the maze referenced above.
Answer
1.If can Move
2.Move Forward
3.If can Move
4.Move right
5.Move Forward 4
6.if can move
7. move left
8.move forward 2
(POGIL) Include a description or a photo of your drawing of a maze that the general algorithm in the POGIL exercise CANNOT solve.
Answer
(POGIL) Write an algorithm for washing a stack of 10 items that are cups and dishes mixed together, where the rule is that cups are washed in hot water and dishes in cold water. Use simple commands like hot_wash and cold_wash. You may also use the control structures IF and REPEAT n times. Identify the parts of your algorithm that are examples of Sequence, Selection and Repetition.
Answer
1.take one cup from the stack of dishes and cup gently
2.move cup to sink and turn on the hot water
3.wash the cup in the hot water until clean
4.place cup in a clean pile gently
5.repeat steps 1-5 until no more cups
Dishes:
1.take one dish from the stack of dishes and cup gently