Term 3 · Computing · Age 12
Programming games, databases and building software
Term 3: 11 lessons in Computing · Age 12
- Breaking a problem down: Decomposition means breaking a big problem into smaller parts that are easier to design, build and test.
- Decisions in code: In Python, if checks a condition and else handles everything else.
- Data types and constants: Every value has a data type: int (whole number), float (decimal), str (text) or bool (True/False).
- Combining conditions in code: Python uses the words and, or, not to combine conditions. With and, both parts must be True.
- 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.
- 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).
- Validation and forms: Validation checks each entry against a rule when it is typed, before it is saved.
- 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.
- What-if spreadsheets: A spreadsheet cell holds either an input (a typed value) or a formula that works out its answer from other cells.
- 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.
- Testing a program: A test plan lists test inputs and the expected result for each, written before running. Then you record the actual results.