Programs may be used to help produce the answers to these written questions. You may use a calculator and the on-line help that your programming language provides. 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.