dcf.cymru stimulus sheet · IT · Year 7

Siop Fach: the tuck shop till

Ysgol Bro Ceri, Siop Fach and every price on this sheet are invented for practice.

1. About the till

Siop Fach is the tuck shop run by Year 10 pupils at break time. Last year the volunteers added up every order in their heads and often gave the wrong change. This year the IT department has written a program for a tablet till. Before it goes live, Year 7 have been asked to test it.

The till works in pence, so £1.20 is stored as 120. It only ever deals with whole pence.

2. Price list

ItemPricePrice in pence
Toast60p60
Bottle of water70p70
Fruit pot80p80
Fruit juice85p85
Flapjack90p90
Cheese roll£1.20120

Deal of the day: buy 3 or more items in one order and get 25p off the order.

3. The till flowchart (Version 1)

Follow the arrows from START. Each shape has a number so you can refer to it.

Flowchart for the Siop Fach till, Version 1 START items = 0 and total = 0 INPUT price of the item (pence) total = total + price items = items + 1 Another item? Is items 3 or more? total = total − 25 INPUT paid (pence) Is paid less than total? OUTPUT “Not enough money” change = paid − total OUTPUT change in the fewest coins STOP Yes No Yes No Yes No 1 2 3 4 5 6 7 8 9 10 11 12 13

4. How the till gives change (box 12)

The till always starts with the biggest coin that fits, gives as many of that coin as it can, then moves to the next coin down. It keeps going until the change left is 0.

UK coins: £2 (200p), £1 (100p), 50p, 20p, 10p, 5p, 2p, 1p.

Example: 70p change. 50p fits, so give 50p (20p left). 20p fits, so give 20p (0p left). Two coins: 50p, 20p.

5. Flowchart shapes

ShapeWhat it means
Rounded boxStart or stop
RectangleProcess: the till works something out or changes a value
Parallelogram (slanted box)Input or output: data goes in or comes out
DiamondDecision: a question with a Yes or No answer