Mini Minds Hub · Free printable

Code a Balanced Hall Front: Free Printable Worksheet for Year 4

In short: Free printable Code a Balanced Hall Front for Year 4 (ages 8 to 9). Trace, fix and write short programs for a balanced hall front.

  • ForYear 4
  • StageKey Stage 2
  • CostFree
  • FormatPrintable PDF

Code a Balanced Hall Front asks Year 4 children (ages 8 to 9) to trace, fix and write short programs that shade squares on a grid, then check whether the finished hall front is balanced. It suits children who have met the idea of giving step by step instructions and are ready to follow them precisely, and it needs only a pencil.

Before anyone shades a square, model one program with a pencil tip as the marker. Say each command aloud and shade only when you say SHADE. RIGHT moves the marker to the next square and does not shade anything. The usual slip is shading the square the marker has just moved to, so ask the child to say which command caused each mark.

What is on the sheet

Children read short programs built from the commands SHADE, RIGHT and REPEAT. They trace what a program does on a grid with columns labelled A to H, and write down the squares it shades. They test programs by shading the grid, fix a program that does not work, and write one of their own. Then they check whether a design is balanced, with both sides matching. There is a table to fill in and space to answer each numbered question.

  • Start at A1. Run REPEAT 3 [SHADE, RIGHT]. Write the squares you shade.
  • Row
  • A
  • B
  • C
  • D
  • E
  • F
  • G
  • H

Worked example: tracing a program

Start at D2. Run REPEAT 2 [SHADE, RIGHT]. Which squares are shaded?

This is our own example. It shows two ways to trace a program before you try the sheet's questions.

Method 1: use a finger or counter
  1. Put a finger on D2. That is the start square.
  2. REPEAT 2 means do everything in the brackets two times. First time: say SHADE and colour D2. Say RIGHT and slide your finger to E2.
  3. Second time: say SHADE and colour E2. Say RIGHT and slide your finger to F2. The program has now finished.
Method 2: write a trace table
  1. Make three columns: step, command, square.
  2. Write each command in order: SHADE at D2, RIGHT to E2, SHADE at E2, RIGHT to F2.
  3. Read down the SHADE rows only. They give the shaded squares.
D2 and E2 are shaded. The marker finishes on F2, which is not shaded.

Building the skill, one step at a time

Say the commands aloud

Read a program slowly and speak every command. Hearing SHADE and RIGHT in order helps children notice when they have skipped one.

Mark where you are

Use a counter or pencil tip as a marker. Children always know which square the program has reached, which stops them losing their place.

Treat REPEAT as a loop

Ask children to read the commands inside the brackets, then say how many times they will run. Then trace the whole set again for each repeat, one go at a time.

Test before you decide

When a program looks wrong, shade it on the grid and compare the result with the plan. Fixing a bug means finding which command caused the difference.

Programs, repeats and symmetry

A program is a set of instructions that a computer follows exactly, in order. It does not guess what you meant. That is why tracing matters. Children act as the computer and follow each command precisely. When the result is not what they planned, the program has a bug, and finding and fixing bugs is a normal part of programming.

REPEAT lets a program do the same thing several times without writing it out again. Symmetry is a different idea that the sheet brings in at the end. A design is symmetrical when one side is a mirror image of the other. Children combine the two ideas: they write a short program, then look at the pattern it makes and ask whether both sides match.

Skills and curriculum link

  • Sequence
  • Repeat
  • Spotting a bug
  • Checking symmetry
  • Tracing programs
  • Careful reading

Ideas that help children with this sheet

  • Order mattersCommands run one after another, so swapping two of them can change the result. Ask children to say what would change if the order switched.
  • Brackets hold a blockA repeat runs everything inside its brackets each time. Children can point at the brackets to show which commands go round again.
  • Bugs give informationA bug tells you where to look. Children compare what the program did with what they wanted and find the first place they differ.
  • Balance means matchingA balanced design looks the same on both sides of a middle line. Children can imagine folding the grid to check.

Key words

  • ProgramA set of commands that tells a computer or a person exactly what to do.
  • CommandOne instruction, such as SHADE or RIGHT.
  • SequenceCommands carried out in order, one after another.
  • RepeatDoing the same commands again, a set number of times.
  • BugA mistake in a program that stops it doing what was meant.
  • SymmetryWhen one side of a shape or pattern is a mirror image of the other side.

How to use it

  1. Print both pages. Page 1 is for the child. Keep page 2, which has the notes and answers.
  2. Read the commands together before starting. Make sure the child can say what SHADE, RIGHT and REPEAT each do.
  3. Work through the first program together with a finger or counter. Then let the child work down the page and shade the grid to test items 1, 2 and 6.
  4. Check against page 2. Ask, "Which command made that square shade?" and let the child explain the trace.
  5. Come back another day and redo any program that felt tricky. Repeating a familiar sheet builds confidence.

Help, stretch and game ideas

If it feels too hard

Let the child touch each square with a finger or counter as they trace a program, saying SHADE and RIGHT aloud. Cover everything below the current program so they see one at a time. Start with the shortest program and shade the grid to check.

To stretch confident children

Ask children to change item 6 so the open gap is wider but still balanced, then write the new program on the back of the sheet. They should shade the grid to test it and explain why both sides match.

Make it a game

Swap sheets with a partner. They trace your item 6 program on the grid and say whether both sides match. If they spot a mismatch, they point to the command they think caused it. Then swap roles.

Mistakes to watch for

Watch forA child shades the square the marker moves to, instead of only the squares that SHADE tells them to shade.

Try thisSay the commands aloud one at a time. Remind them that RIGHT moves the marker and SHADE makes the mark. Shade only on the word SHADE.

Watch forA child runs the repeat once and stops, or runs the commands inside the brackets only the first time.

Try thisAsk them to point to the number after REPEAT and tick off each go. Trace the whole block again for every tick.

Watch forA child decides a design is balanced because both sides have the same number of shaded squares.

Try thisAsk them to compare positions, not just totals. Check that each shaded square on one side has a matching square the same distance from the middle on the other.

Talk about it

  • What does each command do? Can you say it in your own words?
  • How do you know where the program has reached?
  • What does REPEAT save us from writing?
  • If you swapped two commands, what might change?
  • How did you find the bug? What did you look at first?
  • How can you tell if both sides of the design match?

Take it off the page

Human program

Mark out a grid on the floor with chalk or paper squares. One person is the robot and follows spoken commands such as SHADE and RIGHT, placing a counter on each SHADE square.

Pegboard or Lego patterns

Build a short pattern on a baseplate. Write the commands that would make it, then ask someone else to follow them.

Fold and check

Draw a pattern on squared paper and fold it down the middle. Hold it to the light and see whether the two halves line up.

Who it is for

Parents

Sit beside your child for the first program, then let them lead. Short sessions work well. If they are stuck, ask them to put a finger on the start square and say each command aloud.

Teachers

Use it as a starter, plenary or early finisher task, or as a table activity within a unit on programming. It needs no preparation beyond printing, and page 2 has support and stretch ideas for mixed groups.

Home educators

Use it alongside squared paper, counters and floor games. It can be printed again for brothers and sisters, or revisited for revision. Let your child explain each trace in their own words.

Where this fits

Before this, children will have given and followed simple step by step instructions, for example moving a character or a toy along a path. They will have seen that a program runs in order and that the exact wording of a command matters.

After this, children can move on to programs with more commands and longer repeats. They can also begin to design programs to reach a goal, and to test and debug them on a screen. The habit of tracing by hand carries over to those tasks.

Keep practising

If this sheet went well, find more in our Year 4 computing worksheets and Year 4 worksheets and games, or try Debug the Hedge Maze, Code the 1690s Maze, Paper Robot Algorithm Craft or Debug the Sandwich Robot next.

Browse: Mini Minds Hub > Year 4 worksheets and games > Year 4 computing worksheets

Questions parents and teachers ask

What age is Code a Balanced Hall Front for?

It is written for Year 4 (ages 8 to 9), in Key Stage 2. Children who are slightly younger or older can use it too if they are comfortable following written commands carefully.

What will children practise?

Children practise tracing, writing and fixing short programs that use sequence and repeat. They also check a grid design for symmetry. It is a computing activity that needs no computer.

How do I use it?

Print one copy per child. Read the commands together, then children work down the page and shade the grid to test items 1, 2 and 6. Check with the notes and answers on page 2.

What if it feels too hard?

Let children touch each square with a finger or counter as they trace a program, saying SHADE and RIGHT aloud. Try the shortest program first, and come back to the others another day.

Is it free?

Yes. It is free to print for home and classroom use. You can print it again for brothers and sisters, or for revision at a later date.

Is this a screen free activity?

Yes. It needs only paper and a pencil, so it works for quiet time, rainy days and school holidays. Children trace and write programs by hand.

Do I need to print in colour?

No. It prints well in black and white on plain A4 paper. Children only need a pencil for shading.

Preview the full PDF

Made by Jaques of London, making games for families since 1795. A printable supports classroom learning and does not replace a teacher.