Part of Lesson Plan: Decomposition and Abstraction Working Together
Activity Overview / Details
In this activity students will build upon what they've learned in the previous lesson. They must program Karel to climb stairs and pickup up beepers on the stair if there is one and put down a beeper on stairs that do not have a beeper.
Have the students start a new program by following the,
Let's Practice Programming in a Karel World
. They can save it with the name big-Stair.
Big Stairs With A Beeper On Every Other Stair background image and have the students to import it into their program.
The difference between this activity and the previous climbing stair activity is that Karel must pickup a beeper at every other stair and put down a beeper on stairs that don't have one. Before the students begin ask them the following;
- Since the problem at hand is similar to the previous one can you use some of the code from the simple-stair problem?
- If you do use the same code must you change it in some way, if so what changes should be made?
After the discussion have the students to begin their programming. Monitor their progress and give assistance when necessary.