6(a)String HandlingMedium2 marks
Fence parts are manufactured by a number of similar machines. The length of the part must fall within a certain range. Parts not within the length range are rejected.
The data for each rejected part forms a data packet made up of three data items, each separated by the '/' character delimiter. The format of a data packet is:
<length>/<machine ID>/<description of the fault>- The length is 3 digits (in millimetres).
- The machine ID is a single character ('A', 'B', or 'C').
- The description of the fault is a variable length string.
A pseudocode program will process the data for several data packets.
The program contains the statement:
DataPacket ← "563/B/the fence length is too long"Complete the two pseudocode expressions which extract the appropriate data item.