Question: Draw a structured flowchart or write pseudocode describing how to get from your home to school. In addition to sequence structures you should Include at
Draw a structured flowchart or write pseudocode describing how to get from your home to school. In addition to sequence structures you should Include at least two selections decisions and two loops.
A sequence structure performs actions one after the other.
A selection or decision structure will test a condition and one of two actions are taken based on the result of the test.
A loop structure continues to repeat actions while a test remain true.
This flowchart is for you to think about the step by step logic you would need to end up at school. This flowchart will not have any declarations; it is strictly concentrating on logic similar to the dog watching flowchart in the chapter. You do not need separate modules.
You could show it to someone to see if they end up at school. You cannot assume anything when developing the logic.
Some of the decisions which can include loops might be:
hear alarm?
Is it raining?
at school?
ride bus?
drive car?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
