This question is from Samuel Davis' Software Design and Development preliminary course. Question is 14 from Chapter 6, Set A (Page 228).
The following algorithm has been written to control the temperature of an oven. Use this following algorithm to answer questions 13, 14 and 15.
BEGIN ControlTemp
14. Design a set of test data to perform path and decision coverage testing.
Can somebody please help me with this? Thanks.
The following algorithm has been written to control the temperature of an oven. Use this following algorithm to answer questions 13, 14 and 15.
BEGIN ControlTemp
Get Temp
REPEAT
Get CurrentTemp from Sensor
IF CurrentTemp >= Temp THEN
Turnoff heat element
ELSE
If Current Temp < Temp - 5 THEN
Turnon heat element
ENDIF
ENDIF
Wait 1 minute
UNTIL Power is turned off
END ControlTemp14. Design a set of test data to perform path and decision coverage testing.
Can somebody please help me with this? Thanks.
Last edited: