Databases and SQL – IGCSE Computer Science (0478)
Question text
9
An underground car park has a system that checks the height of vehicles. A vehicle can be no
higher than 1.8 metres to enter the car park.
The system also counts the number of vehicles that have entered the car park, so that it can
display how many parking spaces are still available.
Each parking space has a red and a green light above it. If a car is parked in the parking space
only the red light is on, otherwise only the green light is on.
Sensors and a microprocessor are used to control the system.
(a) Complete the table to identify a suitable sensor for each part of the system.
Task
Sensor
check if a vehicle is too high
count the vehicles entering the car park
check if a vehicle is parked in a parking space
[3]
(b) Describe how the sensor and the microprocessor are used to display the red or green light
above the parking space.
…
…
…
…
…
…
…
…
…
…
… [6]