Computer engineering · also RoboticsLevel 2 · Builder
Decomposition, algorithms and flowcharts
Computational thinking starts before any code is written. Decomposition breaks a big job, such as looking after a greenhouse, into smaller jobs that can each be solved and checked. An algorithm is a finite list of precise steps for one of those jobs: precise means two people, or a computer, would do exactly the same thing, so steps name quantities, units and a clear rule for when to stop. A flowchart draws the algorithm with boxes for actions, diamonds for decisions and arrows for what happens next. Tracing it by hand with a table of values, including unusual inputs, finds gaps such as a loop that never ends before anything is built.
Why it mattersA watering controller whose stop rule says 'until moisture reaches 45 % or 60 s pass' cannot flood the tray, while 'water until wet enough' cannot even be programmed.