Big idea: The Ontario curriculum (C3.2) asks Grade 4 students to read and alter existing code, including code with sequential, concurrent, repeating and nested events, and to describe how changes to the code affect the outcomes. The most important idea: the indent decides which loop a line is in, and that decides how many times it runs.
Common difficulties:
- Not noticing indents. Have your child put a finger on each line and say "inside both loops" or "outside loop only".
- Changing many things at once. Encourage one change at a time, with a prediction first.
- Describing only the new answer. Ask "How is it different from before? Bigger, smaller, double, half?"
- Frustration with bugs. Bugs are normal for every coder. Praise careful checking.
How to help: Make a grid with masking tape and let your child "program" you or a toy. Then make one change and ask them to predict the new outcome before you move (Strand A: making conjectures and reflecting).