Learning Academy

CalculatorWiser • Learning Academy

Learn. Practise. Build real understanding.

School subjects, languages, puzzles and practical skills—with worked examples, explanations and guided practice.

27 beginner courses100 lessonsFree starter library
Lesson 3 of 3

Programming as clear instructions

An algorithm is a sequence of steps that produces an outcome. Programs use variables for values, conditions for decisions, and loops for repeated actions. A useful algorithm states what happens for unusual inputs too.

Test boundary cases: zero, empty text, a negative value, or a value exactly at a limit. A program producing one correct answer is not evidence that every case works.

QuestionExampleExplain

Worked example

If a score is at least 80, display passed; otherwise display review. A score of 80 must take the passed branch.

Try it yourself

Write steps for calculating an item total and rejecting a negative quantity.

Check your understanding

Under score >= 80, does 80 pass?

Save this math resource for later
Save to Pinterest