Login or Create an Account to view the mark scheme, comment, and add to a test

George buys his lunch from a convenience store each day, but he finds he’s constantly left with small change that he never uses or simply loses. George wants to optimise his purchase such that he spends a whole $10 note every time he visits the store.

(a).

Define the term algorithm

[1]PRICES is a one-dimensional array of length 30 with the price of a product at each index, such that PRICES[0] = 3.25 for example.

(b).

Write an algorithm using PRICES that outputs the index of each pair of different items with prices that add up to exactly $10

[7]George is very impressed with his algorithm and decides to integrate it into a program and publish it for free online.

(c).

State why user documentation might be necessary to include with the program

[1](d).

Suggest two ways user documentation could be provided

[2]Extended Response11 MarksCommunity

47 Uses50 Views1 Like