Monday, October 10, 2011

#Sample Flowcharts.

1. For each of the flowcharts below describe in words what you think will happen.

This flowchart demonstrates the one second response to a switch. It acts as an instruction and directs you to the possible answers to the purpose of the flowchart, in this case the one second response to a switch. You would start at "start" and answer the questions based on yes or no, if yes you keep no, if no you go back to were it directs you.

Start at start, continue on to "is the switch on" if yes, continue, if not go back to start. If yes, continue to "turn LED on" then to "start timer" the continue to "has 1 seconded expired?" if yes continue, if not go back to "start timer". If yes, continue to "turn led off" "reset timer" "end"

This flow cart shows something to do with temperature and recording the temperature. You would start at start, read the current temperature and if it is more smaller then 32 you would continue to yes, if not you would go the opposite direction until you get to end.

Start at "start" continue to "read temperature". Continue to "temp < 32" if yes continue to "print below freezing" if no continue "print above freezing" then for both answers go to end.





2. Concert one of the algorithms you have created in the previous task into a flowchart, e.g opening a door, moving through a traffic light.

No comments:

Post a Comment