
Important note: This short section covers the most important ideas for the practicals 7 to 12. Take it down completely. It describes the complete procedure for writing a computer program for doing calculations, which is the objective of the first half of this JavaScript course. The example is particularly important. Later you will be asked in asignments to write programs. It is well worth while, always referring back to this example and modelling your program on it.
The following set of instructions uses a formula for calculating "Distance travelled" (s) of an object, when the "Initial Velocity" (u), "Accelleration applied" (a) and the "Length of time" (t) the accelleration is applied for are known, according to the formula s = ut + 1/2at2 Read over these instructions, have a look at the example below it, and then read over them again, referring each line to the example below.