Mini Minds Hub · Free printable

Toy Shop Till Rules: Free Printable Worksheet for Year 4

In short: Free printable Toy Shop Till Rules for Year 4 (ages 8 to 9). Write the till rules, then test them on each basket. With answers for grown-ups.

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

Toy Shop Till Rules is a computing worksheet for Year 4 (ages 8 to 9). Children write two IF THEN rules for a toy shop till, then test those rules on each customer's basket to see what the till does. It suits children who are ready to explain how a computer makes a decision, and it needs only a pencil.

Before children start, total one basket together on scrap paper. Then ask, "Which part is the test?" The usual slip is mixing up the test with the action, so say the test aloud first and the action second. If a child can point to each part in Rule 1, they are ready to fill in the table.

What is on the sheet

The sheet gives children a toy shop till and two rules. They write Rule 1 and Rule 2 as IF THEN rules for the till, then answer a question about which part of Rule 1 is the test and which part is the action. A table is there to fill in, with a column for each customer, basket, total, the result of each rule and what the customer pays. There are lines for writing and space to answer.

  • Write Rule 1 as an IF THEN rule for the till.
  • Write Rule 2 as an IF THEN rule for the till.
  • In your Rule 1, which part is the test and which part is the action?
  • Customer
  • Basket
  • Total
  • Rule 1 yes or no
  • Rule 2 yes or no
  • Pay

How to write a good IF THEN rule

Find the test

Every IF THEN rule starts with a test. The test is a question that can only be answered with yes or no. Ask yourself what the till must check before it can do anything.

Choose the action

The action is what happens when the answer is yes. Keep it short and exact, so the till knows precisely what to do.

Test it on a basket

Take one basket, work out its total and run the rule. Write yes if the test is true and no if it is not. Then do what the rule says.

Read it aloud

Say the rule as if you were the till. If it sounds muddled, a customer might get the wrong result. Change the words until it is clear.

Why do computers need rules?

A computer does exactly what it is told, and nothing more. It cannot guess what a programmer meant. When a program has to choose between two things, it needs a clear test to decide. Programmers call this selection. It is one of the key ideas in computing at Key Stage 2, and IF THEN rules are one way to show it.

Shop tills are a good example because most children have seen one. A till adds up prices and can follow rules set by the shop, such as what happens at a certain total. Writing those rules on paper first, and checking them by hand, is called unplugged computing. It lets children focus on the thinking before they use a screen.

Skills and curriculum link

  • Writing IF THEN rules
  • Following rules by hand
  • Predicting and checking
  • Spotting the test and the action
  • Explaining a decision

Ideas that help with rules

  • A test has two outcomesA good test can only be answered yes or no. If you cannot answer it that way, the test needs rewording.
  • Order mattersThe test comes first. The action only happens if the test is true, so keep them in that order.
  • Exact words countComputers do not guess. Words such as more than or exactly can change what a rule does, so read them slowly.
  • Check with real numbersTrying a rule on an actual basket shows quickly whether it works the way you expect.

Key words

  • RuleA clear instruction that says what to do in a certain situation.
  • TestA check that is either true or false. It is also called a condition.
  • ActionWhat happens when the test is true.
  • SelectionWhen a program chooses what to do next by checking a test.
  • PredictSay what you think will happen before you try it.
  • TotalThe amount you get when you add up all the prices.

How to use it

  1. Print both pages. Page 1 is for your child. Keep page 2, which has notes and answers.
  2. Read the two rule questions aloud. Ask your child to say each rule in their own words before they write it.
  3. Let them work out each basket total on scrap paper, then complete the table one customer at a time.
  4. Check together using page 2. Ask, "How did the test decide what the till did?"
  5. Come back another day. Ask your child to be the till and explain a rule to someone else.

Help, stretch and game ideas

If it feels too hard

Let your child total each basket on scrap paper first. Underline the word over in Rule 1 and talk about what it means. Then do one customer together, saying the test aloud before deciding yes or no.

To stretch confident children

Ask your child to invent Rule 3 about the number of items in a basket. They should write it as an IF THEN rule, then test it on every customer and add the results to a new column.

Make it a game

One child acts as the till and reads the rules aloud. The other is the customer and chooses a basket from the price list. The till works out the total, runs each rule and says what the customer pays. Swap roles.

Mistakes to watch for

Watch forA child mixes up the test and the action in Rule 1.

Try thisAsk, "What does the till check?" That is the test. Then ask, "What does it do next?" That is the action.

Watch forA child writes yes or no without checking the total first.

Try thisTotal the basket on scrap paper, write the number in the table, then run each rule against that number.

Watch forA child skips the exact wording of a rule, such as the meaning of over.

Try thisUnderline the key word and try it on a made up number. Ask whether that number passes the test.

Talk about it

  • What is the till checking each time a customer comes to pay?
  • Why must a test have a yes or no answer?
  • What would go wrong if the rules were written in a muddled way?
  • How did you know what to do when a rule said no?
  • Could two rules both apply to the same basket? What would happen?
  • Where else have you seen a rule that says IF something THEN something?

Take it off the page

Rule of the house

Write three IF THEN rules for home, such as what happens when you come in from the garden. Test each one on a real day and see whether it works.

Be the till

Make price tags for a few toys or snacks. Take turns to build a basket, add it up and tell the customer what the rules say.

Rule swap

Write one IF THEN rule on a card. Swap with a friend, who must act it out exactly as written. Talk about any rule that was unclear.

Who it is for

Parents

Sit beside your child for the first customer, then let them lead. Ask them to say the test aloud before they decide yes or no. Praise clear thinking, not only correct answers.

Teachers

Use it as an unplugged lesson before screen programming, as a starter or plenary, or as an early finisher task. Children can work in pairs and compare how each rule test decided the outcome. It needs no preparation beyond printing.

Home educators

Print it as part of a wider computing plan. It pairs well with everyday talk about rules and decisions, and you can use it again with brothers and sisters. Children can explain their rules to you as a way of checking understanding.

Where this fits in computing

Children usually meet the three main ideas of sequence, selection and repetition across Key Stage 2, and the order can vary between schools. Before this sheet, children are likely to have followed and written simple instructions in order. This sheet focuses on selection, where a rule checks a test and then decides what happens.

After this sheet, children can use the same idea in a program on screen, for example in a block based language. They can also try rules that use more than one test, and practise explaining why a program behaved the way it did. Writing and testing rules by hand first makes that screen work easier.

Keep practising

If this sheet went well, find more in our Year 5 computing worksheets and Year 5 worksheets and games, or try Code a Story Path, Fewest Steps Race, Loop the Treasure Trail or A Message's Big Journey next.

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

Questions parents and teachers ask

What age is Toy Shop Till Rules for?

It is written for Year 4 (ages 8 to 9), in Key Stage 2. Other children may enjoy it too, as extra practice in writing and testing IF THEN rules. If it feels too hard, page 2 has help ideas.

What will children practise?

Children practise writing and following IF THEN rules to decide what a till does. They also predict and check results by testing each rule on a basket, and they name the test and the action in a rule.

How long does it take?

There is no set time. Children can work at their own pace and stop and come back another day. Page 2 has help and stretch ideas to make the task easier or more challenging.

What if it feels too hard?

Let children total each basket on scrap paper first. Underline the word over in Rule 1 and talk about what it means. Then work through one customer together before they try the rest alone.

Is this a screen free activity?

Yes. It needs only paper and a pencil. It works well as an unplugged lesson before children use screen programming, or as quiet time at home. Scrap paper is useful for adding up baskets.

Can teachers use it in class?

Yes. Teachers can use it as a starter, plenary, early finisher task, homework or table activity. Children can work alone or in pairs, then compare how each rule test decided the outcome. It needs no preparation beyond printing.

Do I need to print in colour?

No. It prints well in black and white on plain A4 paper. Print both pages, give page 1 to your child and keep page 2, which has the notes and answers, for yourself.

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.