This lesson is designed to formalise the use of subroutines, a technique that has been introduced gently over the previous unit. Learners will create a dance battle game by decomposing dance moves and creating subroutines for each move.
- Define a subroutine as a group of instructions that will run when called by the main program or other subroutines
- Define decomposition as breaking a problem down into smaller, more manageable subproblems
- Identify how subroutines can be used for decomposition