Menu

Problem Solving and Modelling

4.1

Menu

Intro

When you discuss the new Framework with primary teachers, they always talk about coding, often in a slightly fearful voice. They imagine a black screen full of gibberish code, and wonder how on earth they are supposed to teach it to their 7 year olds. But the term coding doesn't even appear in the Framework! What does appear is this element - 'Problem Solving and Modelling'.

This element involves identifying a problem, breaking it down into manageable parts, spotting patterns and solving the problem. 

We use coding as one way to teach the skills of this element, but there really is no need to fear it. Problem Solving and Modelling is fun, and considerably simpler than you've been imagining. Bee-Bots, Logo, writing instructions - these are things you've been teaching for decades, and the simple coding activities listed below are only an extension of these skills.

Framework

4.1 - Problem Solving and Modelling

  • demonstrate how part of a solution might need repetition
  • represent a simple solution in a flowchart that contains a looping element, e.g. identify where a repeat or loop may work in a flowchart, for instance traffic lights, and select variables.

Skill by Skill

  • Write a simple algorithm for a real world situation to represent a sequence of instructions.
  • Represent a simple solution in a flowchart that contains a looping element.
  • Using a simplified programming environment, program several sprites to move on command.
  • Debug code to identify errors when trying to make a sprite move in a simplified programming environment.
  • Using example code, create a character, number or text that changes over time.
  • With support, follow pre-made instructions to create a simple animation or game using a simplified programming environment and then put your own spin on in it by varying backgrounds and characters.

(EAS ICT Skills Framework)

Vocabulary

code     instructions     program     roamer     sprite     blocks     background     debug     error     correct     loop     repeat

Activity 1

The Sandwich Robot

You may expect a coding activity to start with an iPad or a computer, but 'Problem Solving and Modelling' expects more than that so we start without a single piece of technology.  Pupils write 'Codes' for a 'robot chef' to make 3 cheese sandwiches. This activity builds on the Year 3 Robot Child activity, so make sure your pupils have first been taught that activity before they attempt this one.

Prepare:

  • Create a video or image of a robot chef for the pupils to help. This robot chef can take many forms, depending on your preference:
    • A Yakit Kids or Tellagami talking video explaining his problem.
    • A life size drawing on your display wall.
    • A special hat that you can place on any pupil to turn them into the robot chef.
  • Find A3 paper!
  • Fill an example flow chart for taking 5 penalties. (see example in link)
  • Buy ingredients for a few cheese sandwiches!

Activity Tasks:

  1. Introduce your robot chef to the class. Explain that they are going to code the robot to  make cheese sandwiches.
  2. Show them your example code for taking penalties.
  3. Highlight the simple language, the clear instructions and the fact that a flow chart takes us from one step to the next.
  4. Point to the looping (repeating) part, where the code returns to an earlier point at the start of every penalty.
  5. Point to the few lines of code before the looping element (i.e. the things that only happen at the start) and after the looping element (things that only happen right at the end).
  6. Discuss the basic steps in making a sandwich, maybe even make a sandwich while you discuss it!
  7. Hand out A3 sheets and have the pupils create a flow chart of their code for making 3 sandwiches. The more concise the better. More able pupils can be encouraged to limit themselves to 3 words per instruction.
  8. Have one child act as the robot to 'test out' the codes, with pupils reading their codes step by step to him.

Remember

  • Flow chart instructions should be kept simple and should be easily followed without the need for context.
  • There is no need for full grammatical sentences in their flow charts. Coding requires simplicity and clarity.

Success Criteria

  • I can write my instructions in a  flow chart for another child to follow.
  • I can include a looping element in my code.

Other Framework Elements

3.3 - Evaluating and Improving

Your usual peer-assessment and/or self-assessment.

Vocabulary

code     robot     flow chart     symbols     looping     repeating

Variation Ideas

You could obviously teach this activity without introducing a robot chef, but where's the fun in that!

Activity 2

Chameleon Cat

Until now pupils have been using simplified coding environments such as Scratch Jr, where there are only a certain number of things you can code your sprites (characters) to do. Now we take our first steps into a full coding programme where the possibilities are endless.

In this simple activity, pupils will follow an example code to make a cat change colour every few seconds.

Prepare:

  • Create an account and familiarise yourself with a visual Coding software, Scratch is highly recommended and free online. (Another option is J2Code which is part of J2E)
  • Using the code in the link, practise the activity your pupils will be doing.

Activity Tasks:

  1. Explain that we are moving on from basic programming (Scratch Jr) to more advanced software (Scratch on the computer). There will be lots of things in this software that we do not need to understand, so don't worry about the complexity of options!
  2. Show them the example of a colour changing cat that you made beforehand, then show them how simple the code is. Model how to find the pieces by colour and how to drag them into the Coding area.
  3. Hand out the printouts of the code, and let the pupils follow it at their own pace.
  4. As an extension to this activity, ask the pupils if they can add one block to make the cat meow between each colour change. (Let them try to work this out themselves. Don't give them an example code.)

Remember

  • Pupils will only be ready for this activity if they've done the Coding tasks in previous years. Remember to check this and consider going back to previous years' activities if they are unfamiliar with the topic.
  • If you want more than just colour changes, there are other example codes available online for simple Scratch activities. Click here for some examples found online.

Success Criteria

  • I can code my sprite to change colour over time.

Other Framework Elements

3.3 - Evaluating and Improving

Your usual peer-assessment and/or self-assessment.

Vocabulary

code     sprite     

Variation Ideas

This simple activity has been created specifically for changing colour at regular intervals. There are no useful variations to offer. However, if your pupils achieve it with ease and you'd like to further challenge them, look at the link in the 'Remember' section.

Activity 3

Creating a Quiz Game

scratch jr game

Your pupils should be used to a simple coding programme from their Year 3 activities. Scratch Jr is our recommended option, and this activity builds on the 'Coding an Animation' activity for Year 3.

Prepare:

  • Download a simple coding app that gives you freedom to code as you like (Scratch Jr is highly recommended).
  • Familiarise yourself with the app before introducing it to your class. Have a go at the Spooky Forrest activity available on the Scratch Jr website (click here).

Activity Tasks

  • Remind pupils how to build simple code in Scratch Jr (see Year 3 'Problem Solving and Modelling' activity).
  • Hand out the Spooky Forest instruction sheet from the Scratch Jr website and have the pupils follow those instructions.
  • Explain that the pupils have been asked to create simple quiz games for Year 1 pupils. Their games should:
    • Contain four questions
    • Each question should either be typed as a title or recorded as sound that will play automatically.
    • Each question should have three answer options. The pupils should write codes similar to Spooky Forest so that tapping on the incorrect options makes them shake or disappear, whilst tapping the correct options congratulates them and moves on to the next scene.
  • For an example game, click on the link below.
  • Create an example game as a class. A simple one within the Scratch Jr environment is to have a fish, cat and polar bear in an underwater scene with the question "Who lives in the sea?"
  • Ask the pupils to create their own version of the game.
  • When completed, the pupils should take their iPads to a younger class to demonstrate it to the younger pupils and watch them play their games.

Remember

  • This activity is likely to take a few lessons. Don't rush it.
  • You can't save Scratch Jr games off the iPad therefore you will need to take photos, screenshots or videos to record your work as evidence.

Success Criteria

  • I can code characters to move when they are touched.
  • I can code a game for younger children to play.

Other Framework Elements

3.2 - Creating

You are creating a game.

3.3 - Evaluating and Improving

Your usual peer-assessment and/or self-assessment.

Vocabulary

code     sprite (character)     blocks     instructions     scene

Variation Ideas

There are plenty of coding examples you can follow instead of the Spooky Forest. Scratch Jr is very popular and therefore new examples are posted online by people around the world every week. Just do a Google search.