An algorithm written in pseudocode is shown below.
1 FUNCTION calculateDiscount(spendAmount)
2 IF spendAmount > 100 THEN
3 discount = spendAmount * 0.1
4 ELSE
5 discount = 0
6 END IF
7 RETURN discount
8 END FUNCTION
9
10 SEND "Enter total shopping spend: " TO DISPLAY
11 RECEIVE total FROM (REAL) KEYBOARD
12 SET savings TO calculateDiscount(total)
13
14 IF savings > 0 THEN
15 SEND ("You saved £" & savings) TO DISPLAY
16 ELSE
17 SEND "No discount applied to this purchase" TO DISPLAY
18 END IF
Identify a line number where a string and a number are output on the same line.