A) The flowchart above describes how temperature is shown. Once the termometer is turned on, you read the temp and if the temp is below 32 degrees Celsius it will print "Below Freezing" if it is not below 32 degrees celcius it will print "Above Freezing" and then it will end.
B) The flowchart above describes what the responses are when a light is switched on. Once you press start, if the switch is on then the LED will turn on, however if the switch is not on it will keep asking whether the switch is on. Once it is on, the LED will turn on and the timer would start. If one second hasn't expired the timer will keep asking if it's started, however when it starts the LED will turn off and the timer will reset. The process will be ended here.
No comments:
Post a Comment