One Step at a Time
Imagine you want to make a peanut butter sandwich. Could you do it all in one giant jump? Nope! You have to do one thing, then another, then another. Computers work exactly the same way. Today you will learn how to break a big task into small steps — a skill that every great coder and every great cook uses every single day.
Big Tasks Are Made of Small Steps
A task is something you want to get done. Making a sandwich is a task. Drawing a picture is a task. Even tying your shoes is a task! Here is the secret: every task is made of smaller steps. A step is one small action. When you do all the steps in the right order, the whole task gets done. Let's look at making a sandwich step by step: Step 1: Get two slices of bread. Step 2: Open the peanut butter jar. Step 3: Use a knife to spread peanut butter on one slice. Step 4: Press the two slices together. Step 5: Put the sandwich on a plate. Each step is simple. Together, they make something delicious!
When you break a task into small steps, even hard things become possible. Computers need every step written out — they cannot skip any!
Think about a computer that is making a drawing for you. It cannot think 'I will draw a house.' Instead, it needs instructions like: Step 1: Draw a square. Step 2: Draw a triangle on top of the square. Step 3: Draw a rectangle at the bottom for a door. Each step is small and clear. The computer does them one by one, and suddenly — there is a house!
Match each task to the correct first step.
Terms
Definitions
Drag terms onto their definitions, or click a term then click a definition to match.
When you write steps for a computer, each step should do just one thing. If a step tries to do too much at once, the computer can get confused — and so can you! Keep each step small, and you will always know exactly where you are.
Next time you do a routine job like getting ready for school, count how many steps it really takes. You might be surprised — it could be 15 steps or more!
What is a step?
Why does a computer need every step written out?
Step-by-Step Story
- Pick a simple activity you do every day, like washing your hands or making cereal.
- On a piece of paper, write down every single step.
- Try to have at least five steps.
- Read your steps out loud and act them out.
- Did you forget any steps? Add them in.
- Bonus: Read your steps to a family member and see if they can follow them exactly!