Data can be stored in lists, or input into a program, in order to find solutions to problems and make decisions. Programs output conclusions from data or generate a range of possibilities and likelihoods and take a specific course of action.
The example above uses sequential code, repetition, and selection to calculate and draw circle with user defined characteristics. Users input the diameter of a circle and the program calculates and draws the circumference and area of the circle. Having students create and alter code of this nature corresponds with Mathematics Grade 8 C3.1, 3.2, E2.2