Name: Partner: Period:
ShapeMeaningExample
OvalStart or End"Start", "Done"
RectangleAction (do something)"Eat breakfast", "Go to school"
DiamondDecision (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
  

Part 1: Trace the Flow

Look at the maze wall detection diagram on the board/screen. Answer these questions:

1. What is the condition in the flow diagram?

2. Where are the loops? What is repeated?

Part 2, Diagram 1: A Real-Life Scenario

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.

Part 2, Diagram 2: A Power-Up in a Game

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: _______________________________________________

Part 3: Peer Trace

Swap diagrams with another pair. Pick a starting input and trace through each diagram.

Diagram 1 Feedback

Starting input I chose: _________________________________________

Path I followed:

Feedback: Did you reach an ending? Was anything confusing or broken?

Diagram 2 Feedback

Starting input I chose: _________________________________________

Path I followed:

Feedback: Did you reach an ending? Was anything confusing or broken?

Mini-Challenge: Translate to Scratch

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