Term 1 · Computing · Age 15

Procedures, functions, parameters, library routines, 2D arrays, files and standard algorithms

Term 1: 7 lessons in Computing · Age 15

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

Revision and short notes

All of Computing · Age 15