An algorithm is a finite, ordered set of unambiguous steps that solves a problem or completes a task. Before an algorithm is written in a real programming language, it is usually planned in a language-independent form so that its logic can be checked. The two standard planning tools in the IB course are flowcharts and pseudocode.
A flowchart is a diagram that shows the flow of control through an algorithm using standard shapes connected by arrows. The main symbols are:
total = total + price.