Diagram Desk

Crossing the street flowchart

A school-level everyday algorithm: is the light green, is there enough time left; otherwise wait. Safety rules as a flowchart.

The diagram

StartStand at the crossingWalk signal green?WaitEnough time left?Look both waysCrossEndnoyesnoyes
Flowchart · 8 shapes

Reading it step by step

  • 1. Start at 'Start'.
  • 2. 'Stand at the crossing' is a processing step. Next: 'Walk signal green?'.
  • 3. Decide 'Walk signal green?': if 'no', go to 'Wait'; if 'yes', go to 'Enough time left?'.
  • 4. 'Wait' is a processing step. Next: 'Walk signal green?'.
  • 5. Decide 'Enough time left?': if 'no', go to 'Wait'; if 'yes', go to 'Look both ways'.
  • 6. 'Look both ways' is a processing step. Next: 'Cross'.
  • 7. 'Cross' is a processing step. Next: 'End'.
  • 8. End at 'End'.

Shape by shape

ShapeSymbolConnections
StartTerminator→ Stand at the crossing
Stand at the crossingProcess→ Walk signal green? · ← Start
Walk signal green?Decision→ Wait(no), Enough time left?(yes) · ← Stand at the crossing, Wait
WaitProcess→ Walk signal green? · ← Walk signal green?, Enough time left?
Enough time left?Decision→ Wait(no), Look both ways(yes) · ← Walk signal green?
Look both waysProcess→ Cross · ← Enough time left?
CrossProcess→ End · ← Look both ways
EndTerminator← Cross

Symbols used here

SymbolMeaning
TerminatorWhere the flow starts or ends; a rounded rectangle.
ProcessOne action such as a calculation; a rectangle.
DecisionA question whose answer picks the next path; a diamond.
Flow lineThe order of steps, in the arrow direction.

All flowchart symbols and how to draw

Diagram text

Paste this text into the editor to get the same picture, then change the names to fit your own work.

# Crossing the street flowchart
flowchart TD
  s(["Start"])
  a["Stand at the crossing"]
  b{"Walk signal green?"}
  c["Wait"]
  d{"Enough time left?"}
  e["Look both ways"]
  f["Cross"]
  z(["End"])
  s --> a
  a --> b
  b -->|no| c
  c --> b
  b -->|yes| d
  d -->|no| c
  d -->|yes| e
  e --> f
  f --> z

More flowchart examples

All SeewolLabs tools