The ability to write a program that is easy to read six months later is not accidental. This course covers the fundamental constructs of structured programming — variables, types, conditionals, loops, and functions — with an emphasis on clarity and correctness.
Outcomes
- Write programs using variables, conditionals, loops, and functions
- Trace execution by hand to verify correctness before running the program
- Debug logic and type errors using a systematic process
- Evaluate and improve the readability of your own and others' code
Outline
Start →- 01 Variables and Data Types Declaring and initialising variables, choosing between numeric, boolean, and string types.
- 02 Control Flow Conditionals and loops: making decisions and repeating actions systematically.
- 03 Functions and Scope Decomposing programs into named, reusable procedures with clear inputs and outputs.
- 04 Arrays and Strings Storing and processing sequences of values using indexed collections and text operations.