A drone logistics network routes automated deliveries to different distribution hubs. Each hub has a unique zone code as shown below:
| Code | Hub Location |
|---|---|
| NZ | North Zone Hub |
| SZ | South Zone Hub |
| EZ | East Zone Hub |
A system program is used to dispatch a parcel to a locker at one of these hubs. The program:
IsValidHub()RoutePackage() subroutine01 hubID = input("Enter hub identifier: ")
02 // Validate input
03 validHub = IsValidHub(hubID)
04 if validHub == true then
05 lockerIdx = input("Enter locker index: ")
06 routeLabel = hubID + lockerIdx
07 RoutePackage(routeLabel)
08 endif
Give the line number where concatenation is used.
95 exam-style questions on OCR GCSE Computer Science Programming fundamentals. Each one has a worked solution and a mark scheme showing where the marks go.