Activity 01
Think-Pair-Share: Which Loop Fits?
Post six short task descriptions (for example: print each name in a roster, keep asking until the user enters a number, count from 1 to 20). Students independently choose for or while for each and write one-sentence justifications. Pairs compare choices, resolve disagreements, then share edge cases with the class to build a shared decision rule.
Compare when it is more effective to use a 'for' loop versus a 'while' loop.
Facilitation TipDuring Jigsaw: Loop Pattern Reference Cards, give each group a blank template with loop types on one side and example problems on the other to make the patterns explicit and reusable.
What to look forPresent students with two code snippets, one using a 'for' loop and one using a 'while' loop, to achieve the same outcome (e.g., printing numbers 1-10). Ask students to identify which loop is more appropriate and explain why in one sentence.