← AC9TDI8P09 Implement programs with functions

Defining and using functions

AC9TDI8P09 n2 · waypoint 2 of 4 · Years 7–8 Digital Technologies (processes) · Processes and production skills

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 define functions that accept arguments and produce output, and use them to organise programs into reusable parts

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

No lesson is tagged to this waypoint. The standard is generally covered by some courses; see the standard's page for which are the main focus and which only touch it.

Success criteria

Prior knowledge

Waypoint 1: Writing programs with control structures.

Width

Minimum
Define a function that takes at least one argument and returns or produces output; call the function from the main program
Typical
Define and use multiple functions that produce different output based on their arguments; explain why functions make programs easier to read and maintain
Wider
  • Refactor an existing program by extracting repeated code into functions — explain how the refactored version is easier to modify
  • Limited width — function definition is a mechanical programming skill. The breadth comes from the variety of problems they solve, which is captured at Node 1 and Node 3.

Related standards

AC9TDI8P05 Design nested algorithms

Kit node file for AC9TDI8P09 (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.