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.
Define the term algorithm
PRICES is a one-dimensional array of length 30 with the price of a product at each index, such that PRICES = 3.25 for example.
Write an algorithm using PRICES that outputs the index of each pair of different items with prices that add up to exactly $10
George is very impressed with his algorithm and decides to integrate it into a program and publish it for free online.
State why user documentation might be necessary to include with the program
Suggest two ways user documentation could be provided
Extended Response11 MarksCommunity
47 Uses50 Views1 Like