What is a Program?

It's just a fancy word for a Plan or a Recipe that a computer follows.

The Recipe Analogy 🍳

Imagine you want to bake a cake. You need a list of steps:

  1. Mix flour and sugar.
  2. Add eggs.
  3. Put in oven.
  4. Eat!

If you mix the steps up (like eating before baking), it doesn't work! A Program is just a recipe for a computer.

Why Order Matters

Computers are not smart. They do EXACTLY what you tell them, in the EXACT order you say.

If you tell a robot to "Walk" then "Open Door", it might crash into the closed door! You have to say "Open Door" then "Walk".

PLAYGROUND 🎮

Pizza Bot 🍕

Write a program to make a Pepperoni Pizza!

Commands

BURNT!

Your Program

Empty...