When the item of luggage leaves the check-in area, it is sorted and delivered to the aircraft - Edexcel - GCSE Computer Science - Question 7 - 2020 - Paper 1
Question 7
When the item of luggage leaves the check-in area, it is sorted and delivered to the aircraft.
(a) A printed label is attached to each item. Each label is made up o... show full transcript
Worked Solution & Example Answer:When the item of luggage leaves the check-in area, it is sorted and delivered to the aircraft - Edexcel - GCSE Computer Science - Question 7 - 2020 - Paper 1
Step 1
Sub-part (a)(i) - Look Up Table
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
To determine whether a label is valid, it’s essential to analyze the structure of the label and inspect it against the predefined valid labels. The generalized structure of the label is as follows:
First character: 'D' or 'I'
Second field: Destination airport code
Third field: Airline code
Fourth field: Flight number
Last field: Four-digit item number
This structure ensures that each label conforms to accepted standards.
Step 2
Sub-part (a)(ii) - Validate Label Formatting
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
To validate the format of the labels:
Ensure the first character is either 'D' or 'I'.
Check that each section of the label is separated by hyphens, with no extraneous characters.
The airline code and flight number must be present in the correct order.
The final segment must consist of exactly four digits.
Following these criteria will confirm a properly formatted label.
Step 3
Sub-part (b) - Output Box for 'Pushing'
96%
101 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
The implementation of an output box for 'pushing' would involve creating a structured output mechanism that displays the end result. This could include:
Defining a clear output box format.
Ensuring the output box updates dynamically based on user input.
Making sure the information displayed is relevant to the items processed.
By adhering to these functional requirements, the output box can effectively serve its purpose.