| Shape | Meaning | Example |
|---|---|---|
| Oval | Start or End | "Start", "Done" |
| Rectangle | Action (do something) | "Eat breakfast", "Go to school" |
| Diamond | Decision (yes/no question) | "Is it raining?" |
Arrows connect shapes and show which direction the program flows. A diamond always has two arrows — one for Yes and one for No.
Example
flowchart TD
A([START]) --> B[Get out of bed]
B --> C[Look out the window]
C --> D{Is it raining?}
D -- "Yes" --> E{Do you have\nan umbrella?}
D -- "No" --> F[Put on sunscreen]
E -- "Yes" --> G[Grab your umbrella]
E -- "No" --> H[Stay inside and\nplay video games]
G --> I[Go outside]
F --> I
I --> J{Are you\nhaving fun?}
J -- "Yes" --> K[Keep playing outside]
J -- "No" --> L[Go back inside]
K --> M([DONE])
L --> M
H --> M
Look at the maze wall detection diagram on the board/screen. Answer these questions:
A friend has just messaged you that they’ve finished their homework and want to hang out.
Requirements: At least 3 conditions. At least one merge point (convergence). Bonus: add a loop.
Pick one (or create your own):
Requirements: A condition to activate the power-up. A condition that makes it expire or end.
Power-up chosen: _______________________________________________
Swap diagrams with another pair. Pick a starting input and trace through each diagram.
Starting input I chose: _________________________________________
Path I followed:
Feedback: Did you reach an ending? Was anything confusing or broken?
Starting input I chose: _________________________________________
Path I followed:
Feedback: Did you reach an ending? Was anything confusing or broken?
Look at this flow diagram. Write the Scratch blocks that match this logic. Pseudocode is fine.
flowchart TD
A([Start]) --> B{Is the sprite touching a coin?}
B -- Yes --> C[Add 1 to score]
C --> D{Is score = 10?}
D -- Yes --> E[Say You win!]
D -- No --> B
B -- No --> B
E --> F([Done])
Try it in Scratch if you finished early