Question 1 of 5
Vending cooler. sensorCold false and doorShut true. (a) Trace the displayed message. (b) Values that display ready. (c) Why doorShut is irrelevant when sensorCold is false.
IF (sensorCold)
{
IF (doorShut)
{
DISPLAY ("ready")
}
ELSE
{
DISPLAY ("shut door")
}
}
ELSE
{
DISPLAY ("cool longer")
}