Sequencing, decisions and repetition
Key knowledgeUnderstand how ordered operations, branches and loops control technological algorithms and simulations.
Build the idea
An implemented algorithm relies on correctly ordered instructions, decisions and repetition. Initialisation establishes a valid starting state; branches choose the next action; a stopping rule connects the process to an accuracy target. Trace several steps before trusting a full run, and record a limit or error condition so a failed calculation does not silently continue.
Try the sample task
Implement the following bisection outline for f(x)=x³−2 and explain the purpose of its initialisation, decision and repetition: Set L=1,H=2. Check f(L)f(H)<0. Repeat: M=(L+H)/2; if f(M)=0, return M; otherwise if f(L)f(M)<0 set H=M, else set L=M. Stop when (H−L)/2≤0.0005 and return (L+H)/2. Retain a maximum-iteration guard.
The full worksheet includes the worked solution and remaining task set.
What this activity covers
Focused, tool-neutral workflow. Expected results are mathematically derived; students must run the procedure and record their own outputs. Other technology functions and contexts remain part of the broader outcome.