You may use a calculator and the on-line help that your programming language provides, and you should have a pen, some blank paper, and a blank floppy disk on which to save your programs. You must not use any other material such as disks, files on a computer network, books or other written information. Number all pages in order if you use more than one sheet. For your programs to be marked, the source code must be saved, along with executables if your language includes a compiler. This includes programs used to help answer written questions.
Bold text indicates output from the program, and normal text shows data that has been entered.
The output format of your programs should follow the 'sample run' examples. Your programs should take less than two minutes of processing time for each test. Attempt as many questions as you can. Marks allocated to each part are shown in square brackets next to the questions. You may answer the questions in any order.