Question 3

OCR Computer Science June 2016 Paper 2AS11 marks

On the specification

(a)
3.2 Programming project: Design of the solution
(b)
3.2 Programming project: Design of the solution
(c)
3.2 Programming project: Design of the solution
Question text

3 (a) A software development company is planning to produce a bespoke monitoring system for a factory which produces hazardous chemicals. One testing strategy is whitebox testing. State the name of three other testing strategies that the company could use. 1 2 3 [3] (b) The company decide to use whitebox testing. Justify why whitebox testing is used in this case. [3] (c) A temperature control system monitors and regulates temperature by switching a heater on or off. The temperature sensor of the system provides a reading accurate to 3 decimal places (e.g. 87.489). There are two warning lights, amber and red. The system controls the temperature and warning lights as follows: • The heater is turned off when the sensor reading is 97.500. • The heater is turned on when the sensor reading is 95.000. • The red warning light is on when the sensor reading is 98.100 or above. • The amber warning light is on when the sensor reading is outside the range 95.000 to 97.500 (inclusive), and the red warning light is not on. Complete the boundary test table below. Sensor value Output On/off 94.999 Amber light on Heater 95.000 Amber light Heater 97.500 Amber light 97.501 Amber light Amber light 98.099 Red light Amber light 98.100 Red light [5]