Welcome to our school

Lesson 5 - Year 6

Learning Intention

  • I can program Ohbot to fulfil a real world job

Introduction

Today we are going to draw on the skills we have learnt in previous years to write our very own computer program that fulfils a real life scenario. The skills we will be using are: ask name; ask and wait; the if command; the if-then-else command; and if current hour. Today, Ohbot will be the telephone receptionist at our school. Has anyone heard the message you get when you ring the school? Do you know who is speaking? Do you know any of the options you are given?

Teacher Input

Ask the children for their responses to the following questions and record their ideas on the working wall. What do you think a school telephone receptionist should say first? (Usually they would say a welcome message. They may then ask the caller their name. The receptionist can then respond to the caller using their name. They might also say good morning or good afternoon depending on the time of the day.)

What would be the next step? (Usually the telephone receptionist would then provide the caller with a list of options.) What might those options be in a school? Who might you want to speak to in a school? (Office, head teacher, etc.) The telephone receptionist would then ask the caller more questions depending on who they have asked to speak to within school.

Ask the children to suggest ways we could solve any of the ideas on the working wall using Ohbot language. What projects have we already written that use these skills? Finally, run the demonstration code for the children to provide them with further ideas for the development of the project.

Activities

1.

Children to write the code which allows Ohbot to be a school telephone receptionist.

Receptionist code welcoming the caller and asking their name
2.

Continue building the receptionist program, offering the caller a list of options and responding to each.

Receptionist code offering the caller a list of options

Extension

Children to write detailed code for more than one department or option.

Plenary

Show some good examples of children's projects to the class. How did you find today's lesson? (Thumbs up, down, middle)

Ohbot image

Key Points

  • Real world jobs can be modelled by combining skills from across the scheme.
  • This project draws on ask name, ask and wait, if, if-then-else and current hour.
  • Planning the conversation on a working wall before coding clarifies the structure.
  • `current hour` lets Ohbot greet callers with good morning or good afternoon.
  • Each caller option needs its own branch of conditional code.

Need Help?

If you're stuck on any part of this lesson, check out these resources:

Ohbot