Home›Lesson Plans›Computer Science›Programming · Grades 3–5

Coding: Giving a Computer Commands in Order

Students write their first programs — sequences of commands that move a robot across a grid to a goal — learning that code is just clear instructions a computer runs in order.

Grades 3–5Coding45 minutes1 class periodCode LessonExplicit teaching4 StandardsISTE + CSTA
Start the Lesson
Lesson at a Glance

Everything you need before the bell rings

Learning Objectives

Students will be able to…

  • ✓Write a sequence of commands (a program).
  • ✓Predict where a program will move the robot.
  • ✓Run a program and check the result.
  • ✓Fix a program that doesn’t reach the goal.
Essential Question

How do you get a robot to go exactly where you want? You give it commands, one after another — and it runs them in order. That’s coding.

0
Lesson Phases
0
Vocabulary Terms
0
Standards Aligned
0
Interactive Task
Program the Robot · Interactive

Program the Robot

Project this and build a program with the arrow commands, then press Run. Have students predict the path first, then watch the robot follow it exactly.

🤖 Program the robot — reach the ⭐Try it

Add arrows to program the robot, then press Run to reach the ⭐.

The Lesson · Use · Modify · Create

45 minutes, five moves

Tap any phase to open the teacher moves and student actions.

1

Warm-Up — Move the Robot

5 min

If you could only say up/down/left/right, how would you guide a friend?

👩‍🏫 Teacher Moves

  • Have students direct you with only 4 commands.
  • Show the robot follows exactly.
  • Set the goal: write a program.

🎒 Student Actions

  • Give arrow directions.
  • See exact following.
  • Predict what “program” means.
2

Learn — Commands in Sequence

10 min

Teacher models a program.

👩‍🏫 Teacher Moves

  • Define command and program (a sequence).
  • Model building arrows to reach the goal.
  • Predict the path before running.

🎒 Student Actions

  • Learn command vs. program.
  • Watch a program built.
  • Predict the path.
3

Use It — Program the Robot

12 min

Students use the tool.

👩‍🏫 Teacher Moves

  • Have students program the robot to the star.
  • Predict, then Run to check.
  • Discuss why the order matters.

🎒 Student Actions

  • Build a program.
  • Predict, then Run.
  • Check the result.
4

Create — New Challenges

13 min

Students create programs.

👩‍🏫 Teacher Moves

  • Give new start/goal challenges (or unplugged grid).
  • Have students write efficient programs.
  • Encourage predicting before running.

🎒 Student Actions

  • Solve new grid challenges.
  • Write the shortest path.
  • Predict then run.
5

Share — Share

5 min

Students share a program.

👩‍🏫 Teacher Moves

  • Invite students to show a program.
  • Have the class predict its path.
  • Hand out the exit ticket.

🎒 Student Actions

  • Show a program.
  • Predict a path.
  • Complete the exit ticket.
Standards Alignment

Built to the standards you report on

Aligned to the ISTE Standards for Students and the CSTA K-12 Computer Science Standards.

CSTA
1A-AP-10

Develop programs with sequences and simple loops to express ideas or address a problem.

CSTA
1A-AP-11

Decompose the steps needed to solve a problem into a precise sequence of instructions.

ISTE
Computational Thinker

Understand how automation works and use algorithmic thinking to develop a sequence of steps.

CCSS
RI.3.3

Describe steps in a procedure using sequence language.

Differentiation

One lesson, every learner

Multilingual Learners

ELL / EMERGING READERS
  • Arrow command cards to build a program.
  • Sentence frame: “First up, then right…”
  • Walk the path on a floor grid.

Support & Access

IEP / 504
  • Start with a goal 2 steps away.
  • Let students place one command at a time and run.
  • Use a physical grid before the screen.

Stretch & Extend

GIFTED / EARLY FINISHERS
  • Find the shortest program to the goal.
  • Program a path with a turn.
  • Write a program for a partner’s grid.
Materials

What to gather

  • 📽️Projector / board
  • 📓Notebooks
  • 💻Program the Robot
  • 🗂️Arrow command cards
  • 🔲A floor/paper grid
  • 🎫Exit-ticket slips
Vocabulary

Key terms — hover for a quick definition

commanda single instructionprograma sequence of commandscodeinstructions a computer runssequencethe order of commandsrunto make the computer follow the programgridrows and columns of squaresgoalwhere the program should endpredictto say what will happen first
Evaluate

Exit Ticket

Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.

QUESTION 1
What is a program?
A sequence of commands (instructions) that a computer runs in order.
QUESTION 2
The robot needs to go up 2 and right 1 to reach the star. Write that program.
Up, Up, Right (in any order that still lands on the star — up, up, right works).
QUESTION 3
If a program doesn’t reach the goal, what should you do?
Check the commands in order, find the mistake, and fix it (debug), then run it again.

Going deeper? Design a maze.

Have students draw a grid maze with a start and goal, then write the program that solves it and trade with a partner. A printable grid-maze template is in the CS library.

Study · Flashcards

Study the key terms

Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.

🃏 Coding: Commands & SequencesFlip
Card 1
Term
Tap to flip →
Meaning
0

Nice work!

Practice · Quiz

Check your understanding

A quick self-check with instant feedback, drawn from this lesson’s key terms.

📝 Coding: Commands & SequencesQuiz
Score: 0
1 / 6
Question 1
0%

Nice work!

Practice · Worksheet

Printable worksheet

A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.

🖨️ Coding: Commands & SequencesPrint
Name: ________________________
Date: ____________

Part A · Write the word that matches each meaning

Word bank: code, command, goal, grid, predict, program, run, sequence
  1. rows and columns of squares
  2. the order of commands
  3. to make the computer follow the program
  4. to say what will happen first
  5. instructions a computer runs
  6. a sequence of commands
  7. a single instruction
  8. where the program should end

Part B · Show what you learned

  1. What is a program?
  2. The robot needs to go up 2 and right 1 to reach the star. Write that program.
  3. If a program doesn’t reach the goal, what should you do?
Answer key — Part A: 1) grid · 2) sequence · 3) run · 4) predict · 5) code · 6) program · 7) command · 8) goal
Part B: 1) A sequence of commands (instructions) that a computer runs in order. 2) Up, Up, Right (in any order that still lands on the star — up, up, right works). 3) Check the commands in order, find the mistake, and fix it (debug), then run it again.