Activity 01
Pair Programming: Shape Repeater
Pairs take turns: one writes a 'for' loop to draw repeated shapes in a block-based tool like Scratch, the other tests and suggests improvements. Switch roles after 10 minutes. Share one successful pattern with the class.
Construct an algorithm using a loop to perform a repetitive task.
Facilitation TipDuring Pair Programming: Shape Repeater, circulate and ask each pair to explain their loop setup before they run the code, ensuring they connect the repetition count to the loop’s purpose.
What to look forPresent students with a pseudocode snippet that draws a square using a 'for' loop. Ask them to identify the number of repetitions and the shape being drawn. Then, provide a scenario like 'move forward until you hit a wall' and ask which loop type ('for' or 'while') would be best suited and why.