Coding Tutorial for Kids

Flowcharts โ†’ Scratch!

Learn how to turn a flowchart plan into real Scratch code, step by step!

โšก Interactive ๐ŸŽฎ Ages 9โ€“12 ๐Ÿงฉ 5 Lessons
Progress
Step 1 / 5

๐Ÿ—บ๏ธ What is a Flowchart?

A flowchart is like a map for your program! Before you write any code in Scratch, you draw out your plan using shapes and arrows. Each shape means something different โ€” just like road signs!

๐Ÿ’ก Think of it this way: Architects draw blueprints before building a house. Programmers draw flowcharts before writing code. The flowchart shows what the program should do โ€” then Scratch blocks make it happen!

๐Ÿ—๏ธ Why use flowcharts?

๐Ÿ”
Spot Mistakes Early
Fix problems before you even start coding!
๐Ÿง 
Clear Thinking
Organise your ideas before the fun coding begins!
๐Ÿค
Share Your Plan
Show friends your idea without writing a single line of code!
๐Ÿ–ฑ๏ธ Click the shapes to explore! (Simple Flowchart)
๐ŸŸข Start
๐Ÿ“ฅ Ask for name
Is name = "Alex"?
โœ… YES
๐Ÿ’ฌ Say "Hi Alex!"
โŒ NO
๐Ÿ’ฌ Say "Hello!"
๐Ÿ”ด End
Step 1 of 5

๐Ÿ”ท The 4 Main Flowchart Shapes

Every flowchart uses the same set of shapes. Once you know what each one means, you can read ANY flowchart โ€” and convert it to Scratch!

START / END
Oval / Terminal

Marks where the program starts or ends. Every flowchart has these!

PROCESS
Rectangle / Process

An action that happens: move, say something, change a score!

INPUT/OUT
Parallelogram

Input = get info in. Output = show info to the user!

DECISION
Diamond / Decision

A YES or NO question. The program branches two ways!

๐Ÿ”— Don't forget the arrows! Arrows connect all the shapes and show which direction the program flows โ€” always follow the arrows to trace your program's path!

๐Ÿ“ Shape Summary Cheat Sheet

Shape Name Meansโ€ฆ Example
Oval
Terminal Start or End Start, Stop, Begin
Rectangle
Process Do an action Move 10 steps, Play sound
Slanted
I/O Input or Output Ask question, Say answer
Diamond
Decision Yes/No branch If score > 10, If touching?
Step 2 of 5

๐Ÿงฉ Flowchart Shapes โ†’ Scratch Blocks

Every flowchart shape matches a type of Scratch block! Once you spot the shape, you know which block to use. Let's go through each one:

๐Ÿ”„ Shape โ†” Block Matcher
๐Ÿ“ Flowchart Shape
START
Oval / Terminal
โžก๏ธ
๐ŸŸก Scratch Block
๐Ÿšฉ When Green Flag clicked
Events Hat Block (yellow)
The oval "START" shape becomes the ๐Ÿšฉ When Green Flag clicked block in Scratch! This special hat-shaped block sits at the TOP of every script โ€” it's where your program begins when someone clicks the green flag. The "END" oval usually means your script just stops running.
๐Ÿ“ Flowchart Shape
Move 10 steps
Rectangle / Process
โžก๏ธ
๐ŸŸก Scratch Block
๐Ÿ‘Ÿ move 10 steps
๐Ÿ‘๏ธ say "Hello!" for 2 secs
๐ŸŽต play sound Meow
Motion, Looks, Sound blocks
Rectangles are "DO something" shapes. In Scratch, these become Motion blocks (blue), Looks blocks (purple), or Sound blocks (pink) โ€” anything that makes your sprite act, move, speak or change!
๐Ÿ“ Flowchart Shape
Ask question
Parallelogram / I/O
โžก๏ธ
๐ŸŸก Scratch Block
โ“ ask "What's your name?" and wait
๐Ÿ’ฌ say "Hello!" for 2 secs
Sensing + Looks blocks
The slanted parallelogram is for INPUT (getting info) and OUTPUT (showing info). In Scratch: ask block = input (the user types something), and the say block = output (the sprite shows a message on screen).
๐Ÿ“ Flowchart Shape
Score > 10?
Diamond / Decision
โžก๏ธ
๐ŸŸก Scratch Block
๐Ÿ” if <score > 10> then
๐Ÿ’ฌ say "You win!"
else
๐Ÿ’ฌ say "Try again!"
Control: if/else block (orange)
The diamond decision shape becomes the if/else block in Scratch! The diamond asks YES or NO โ€” in Scratch that's the condition inside the <>. If it's TRUE (yes), run the top path. If FALSE (no), run the else path. This is called a conditional!
Step 3 of 5

๐Ÿ—๏ธ Let's Build: "Guess My Number!"

Here's a complete example! On the LEFT is the flowchart plan. On the RIGHT is the Scratch code it converts to. See how every shape becomes a block!

๐Ÿ—บ๏ธ Flowchart Plan
๐ŸŸข Start
Set secret = 7
๐Ÿ“ฅ Ask "Guess: 1-10"
guess = secret?
โœ… YES
๐Ÿ’ฌ "You got it!"
โŒ NO
๐Ÿ’ฌ "Try again!"
๐Ÿ”ด End
๐Ÿฑ Scratch Blocks
๐Ÿšฉ When Green Flag clicked
๐Ÿ“ฆ set [secret] to (7)
โ“ ask "Guess: 1 to 10" and wait
๐Ÿ” if <answer = secret> then
๐Ÿ’ฌ say "You got it!" for 2s
else
๐Ÿ’ฌ say "Try again!" for 2s
end if
Block Colours
Yellow = Events (Whenโ€ฆ)
Blue = Motion
Purple = Looks (say, think)
Teal = Sensing (ask)
Orange = Control (if/else)
Orange = Variables (set)
๐Ÿ”‘ The 5-Step Rule for Converting:
1๏ธโƒฃ Find the START oval โ†’ place the hat block
2๏ธโƒฃ Follow the arrows in order
3๏ธโƒฃ Each rectangle โ†’ one action block
4๏ธโƒฃ Each parallelogram โ†’ ask or say block
5๏ธโƒฃ Each diamond โ†’ an if/else block
Step 4 of 5

๐Ÿ† Quiz Time!

Score: 0 / 5
Loadingโ€ฆ
๐Ÿ†
Amazing!

You finished the quiz!

Step 5 of 5