Ordering instructions correctly
Sequences & Step-by-Step Instructions
Key Points
- A SEQUENCE is a set of steps performed in a specific order to complete a task
- Computers follow instructions EXACTLY in order — a wrong step or wrong order causes an error!
- Every day you follow sequences: wake up → brush teeth → get dressed → eat breakfast
- The order of steps matters: you must put socks on BEFORE shoes (not after!)
📘 Examples
❓ Put in order to make a PB&J: A) Eat, B) Get bread, C) Add peanut butter, D) Close sandwich
✅ B → C → D → A! Get bread, spread peanut butter, close sandwich, then eat! Order matters!
❓ A robot must go right 3 steps then up 2 steps. How many total steps?
✅ 5 steps! Right, Right, Right, Up, Up. Robots need exact, ordered instructions!
❓ Why would a robot fail if Step 2 and Step 3 are swapped?
✅ Because computers follow instructions EXACTLY! Wrong order = wrong result. A programmer must be very careful!
🌟 Fun Fact!
Ada Lovelace (1815–1852) wrote the world's first computer program — 100 years before modern computers existed! She was a mathematician who worked with Charles Babbage's 'Analytical Engine'. 💻