Term 3 · Computing · Age 12

Programming games, databases and building software

Term 3: 11 lessons in Computing · Age 12

  1. Breaking a problem down: Decomposition means breaking a big problem into smaller parts that are easier to design, build and test.
  2. Decisions in code: In Python, if checks a condition and else handles everything else.
  3. Data types and constants: Every value has a data type: int (whole number), float (decimal), str (text) or bool (True/False).
  4. Combining conditions in code: Python uses the words and, or, not to combine conditions. With and, both parts must be True.
  5. Using libraries: A library is a collection of ready-made, tested routines. Making random numbers yourself takes tricky code; a library does it in one line.
  6. Planning a database: A database stores data in tables. Each column is a field (one kind of data) and each row is a record (everything about one item).
  7. Validation and forms: Validation checks each entry against a rule when it is typed, before it is saved.
  8. Models and simulations: A computer model uses rules and formulas to predict what might happen. This one predicts a school fair's income from the ticket price.
  9. What-if spreadsheets: A spreadsheet cell holds either an input (a typed value) or a formula that works out its answer from other cells.
  10. Developing in iterations: One way to build software: plan, design, build, test and release, each stage once. It is simple, but problems found at the end are costly.
  11. Testing a program: A test plan lists test inputs and the expected result for each, written before running. Then you record the actual results.

Revision and short notes

All of Computing · Age 12