Term 1 · Computing · Age 15
Procedures, functions, parameters, library routines, 2D arrays, files and standard algorithms
Term 1: 7 lessons in Computing · Age 15
- Procedures and functions: A subroutine is a named block of code. Calling it runs the block, then returns to where it was called.
- Parameters, local and global variables: Parameters are placeholders in a subroutine; arguments are the actual values passed. Change the arguments.
- Library routines: Languages include tested routines you can use straight away. Try each.
- Two-dimensional arrays: A 2D array stores a table: scores[row, column]. Pick a cell.
- Reading and writing text files: Variables are lost when a program ends; files keep data. Write, append, then read.
- Standard algorithms: totals, max, min, average, counting: Start at 0 and add each value.
- Designing and testing a complete program: Split a large problem into input, process and output parts.