3. Sequence¶
A sequence is steps happening one after another, with nothing skipped and nothing repeated. It's the simplest kind of logic, and almost every flowchart starts here.
In a flowchart, a sequence is just boxes stacked top to bottom, each connected to the next by an arrow:
( Start )
|
[ Get two slices of bread ]
|
[ Spread peanut butter on one slice ]
|
[ Put the slices together ]
|
( End )
The matching pseudocode is the numbered-list version of the same thing:
1. Get two slices of bread
2. Spread peanut butter on one slice
3. Put the slices together
Same logic, two different pictures of it.
Try it
In draw.io, draw a 4-step flowchart for getting ready in the morning (Start oval, 4 rectangles, End oval). Then write the matching pseudocode as a numbered list.
Tip
If you can't draw it as a straight line of boxes, you probably have a decision or a loop hiding in there — that's fine, those are next.