Activity 01
Pair Programming: Obstacle Course
Students pair up to code a sprite that uses if-then-else to dodge obstacles: if touching red block, turn left; else, go forward. Partners alternate coding and testing, then modify for new conditions. End with a class showcase.
Explain how conditional statements guide a program's flow.
Facilitation TipDuring Pair Programming: Obstacle Course, circulate and ask each pair to verbally explain their condition and predicted path before testing, using sentence frames like 'When __, the program will __.'
What to look forProvide students with a simple flowchart for a program that uses 'if-then-else'. Ask them to write down the output of the program for two different starting inputs, explaining how the conditions were met or not met.