A car park uses a number plate recognition system - Edexcel - GCSE Computer Science - Question 1 - 2019 - Paper 1
Question 1
A car park uses a number plate recognition system.
(a) Identify the reason why unsigned integers should be used to record the number of cars entering and leaving th... show full transcript
Worked Solution & Example Answer:A car park uses a number plate recognition system - Edexcel - GCSE Computer Science - Question 1 - 2019 - Paper 1
Step 1
Identify the reason why unsigned integers should be used to record the number of cars entering and leaving the car park, rather than signed integers.
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
Unsigned integers are preferred because they can store more positive values than signed integers. This characteristic ensures that they can accurately represent the number of cars without the risk of encountering negative values, which are nonsensical in this context.
Step 2
Construct an expression that calculates how many bytes there are in four terabytes of disc storage.
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 calculate the total number of bytes in four terabytes, you can use the following expression:
Construct a Boolean logic statement, using P, T and S, to represent the conditions necessary for the system to raise the exit barrier.
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 Boolean logic statement can be represented as:
extRaiseExitBarrier=PextAND(TextORS)
This indicates that the barrier will raise if the number plate has been recorded (P) and either enough time has been paid for (T) or the car belongs to a member of staff (S).