← AC9TDI4P04 Implement visual programs

Adding branching to programs

AC9TDI4P04 n2 · waypoint 2 of 4 · Years 3–4 Digital Technologies (processes) · Processes and production skills · Hinge

Draft, from Waypoints Kit v0.2. Generated from Kit's node data and not yet reviewed by a specialist in Digital Technologies (processes): treat it as a starting suggestion and check it before use.

Checkpoint

Students can write a program that uses a comparison condition to branch and execute different steps depending on the result

Make a primer for this
Opens Create with a Primer starter: title, goals from the success criteria, the misconception and width suggestions to choose from. Nothing is published until you send it in.

Lessons on this site

None yet.

Success criteria

Prior knowledge

Waypoint 1: Writing and running a sequential program.

Width

Minimum
Write a program with one IF/THEN branch using a comparison (e.g. if temperature > 25) that produces different outputs for different input values
Typical
Write programs with comparison-based branches for different contexts — labelling weather as hot or cold, deciding whether to wear sunscreen, responding to a user's answer in a quiz; test the program with values that trigger each path
Wider
  • Implement a program with IF/THEN statements based on a real protocol — for example, IF a specific animal is found injured THEN the ranger follows a specific procedure; discuss how programs can encode decision-making knowledge
  • Write a program with multiple conditions (IF...ELSE IF...ELSE) for a context with more than two outcomes and explain how each condition is evaluated

Hinge

Students who only test one branch path (or don't recognise when a branch fires) produce programs that appear to work but fail on untested inputs — this pattern of partial testing cascades into N4 where combined structures amplify the problem.

Response modes

Where extra effort goes at this waypoint (width), not what kind of lesson it is.

Context breadth: more contexts in the vary or modify stepStudents often test their branching program with only one input value and assume it works. Wider task contexts that require testing both branches — and later multiple branches — build the habit of checking conditional logic exhaustively.

Related standards

AC9TDI4P02 Algorithms with branching and iteration

Kit node file for AC9TDI4P04 (JSON; this waypoint is node 2)

Descriptors: Australian Curriculum v9 (ACARA, CC BY 4.0). Waypoints, success criteria, width and response modes: Waypoints Kit v0.2 (CC BY-NC-SA 4.0), waypoints-kit 834ceb8. Corrections go to Kit, not this site.