Question 5
OCR Computer Science Specimen Paper 2AS18 marks
On the specification
- (a)
- 2.1 Elements of computational thinking1.4 Data types, data structures and algorithms
- (b)
- 2.1 Elements of computational thinking
- (c)
- 2.3 Algorithms2.2 Problem solving and programming
Question text
5 A car has a feature in its engine management system that is intended to save fuel and emissions produced when the car is waiting at traffic lights or in a traffic jam. The default option is that if the gears are disengaged and the car is not moving, the engine is switched off. There is a display on the dashboard that indicates when the engine has been switched off in this way. However, sometimes it is necessary to keep the engine running even when the car is stationary, in order to provide electric power to charge the battery, run the heater, run the air conditioning system or keep the lights on. This, in turn, is affected by the external and internal temperatures, the settings chosen by the driver and the intensity of light outside. (a) Identify four inputs needed by this feature of the engine management system. For each one suggest a suitable data type for its storage. Input Data type (b) Identify two outputs from this engine management feature. [2] (c) Write an algorithm that would produce the results described for this engine management system feature. [8]