Term 2 · Computing · Age 13
Testing, devices and managing data
Term 2: 10 lessons in Computing · Age 13
- Comparing two algorithms: Algorithm A adds the numbers one by one. Algorithm B uses a formula. Both are correct. Change n and compare how many steps each needs.
- Binary search: In a sorted list, check the middle item. If it's too small, discard the left half; if too big, discard the right half. Repeat.
- Test plans and test data: A program that accepts whole numbers from 1 to 10 should be tested with ordinary values, values at the edges and values it should reject.
- Three kinds of error: A syntax error is like a spelling or grammar mistake in code. The program won't even start. Run it, read the message, then fix it.
- Debugging with a trace table: This program should output the average of 6, 9 and 3, which is 6. Step through and fill the trace table.
- Prototypes, feedback and better designs: Developers rarely get a product right first time. They build a prototype, test it with users and improve it, round and round.
- Programming a physical device: A small programmable board has a light sensor. The program reads it in a loop: when it's dark it shows a moon, otherwise a sun.
- Spreadsheet functions: Functions summarise a range of cells. Try each one on the test marks. Notice that COUNT only counts cells with numbers in them.
- Building and checking a spreadsheet model: A spreadsheet model represents a real situation.
- Related tables and keys: Putting students and their results in one table repeats names and classes in many rows. Look at the problems this causes.