Assignment, Variables, Constants & Sequences
Inputs, Outputs & Type Conversion
Condition controlled Loops
Count Controlled loops
Nested Selection and Iteration
Subroutines 1 - Procedures
Subroutines 2 - Functions
Operators and Operations
Structured Programming
Validation and verification
Good notes will help you organise and process data and information
A Subroutine is a reusable sequence of instructions that perform a specific task
We are going to look at a simple Subroutine that prints a greeting.
Save your file as 'a simple subroutine'
A Parameter is a variable that is 'passed' to a subroutine
We can pass information to our procedure through parameters.
The terms parameter and argument are sometimes used interchangeably. However, parameter refers to the type and identifier, and arguments are the values passed to the function.
Below you can see our procedure has a single parameter called 'name' which we use to say hello to a person.
Save your file as 'a simple subroutine2'
Write your answer in the extension slide (see below)
Lets look at the learning outcomes and decide which one best describes our current level of understanding :
Tick the one you feel is closest to your level
AQA Computer Science Tutor