Activity 01
Pair Debug: Shopping List Algorithm
Pairs write pseudocode for generating a shopping list with conditionals like 'IF budget under $50 THEN skip luxury items'. They swap scripts, test by role-playing the shopper, and suggest fixes. Groups share one refined version with the class.
Construct pseudocode for an algorithm involving conditional logic.
Facilitation TipDuring Pair Debug, have students read their pseudocode aloud as if giving instructions to a peer to catch vague language.
What to look forProvide students with a scenario, e.g., 'A vending machine dispenses a snack if enough money is inserted, otherwise it returns the money.' Ask students to write pseudocode for this scenario, including at least one conditional statement. Collect and review for correct IF-THEN-ELSE structure and clear steps.