100% found this document useful (1 vote)
1K views249 pages

Year 6 - 9781009320566 - 2 - 2

Uploaded by

ssmemon31
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views249 pages

Year 6 - 9781009320566 - 2 - 2

Uploaded by

ssmemon31
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 249

CAMBRIDGE

Primary Computing
Learner’s Book 6
Ceredig Cattanach-Chell, Luke Craig
& Sarah Matthews


Second
Digital edition
access

Copyright Material - Review Only - Not for Redistribution


R R R
ev ev ev
ie ie ie
w w w
C C C
op op op
y y y
-C -C -C -C
am am am am
br br br br
id id id id
ge ge ge ge
U U U U
ni ni ni ni
ve ve ve ve
rs rs rs rs
ity ity ity ity
Pr Pr Pr
es es es es
s s s s
& & & &
As As As As

& Sarah Matthews


se se se se
ss ss Learner’s Book 6 ss ss
m m m m
CAMBRIDGE

en en Ceredig Cattanach-Chell, Luke Craig en en


t

Copyright Material - Review Only - Not for Redistribution


-R t- t- t-
R R R
ev ev ev ev
ie ie ie
w w w
C C C C
op op op op
Primary Computing

y y y y
ev
ity

R
rs
ve

t-
en
ni
U

m
ge

ss
se
id
br

As
Shaftesbury Road, Cambridge CB2 8EA, United Kingdom
am
One Liberty Plaza, 20th Floor, New York, NY 10006, USA

y
op
&
477 Williamstown Road, Port Melbourne, VIC 3207, Australia
-C

C
314–321, 3rd Floor, Plot 3, Splendor Forum, Jasola District Centre, New Delhi – 110025, India

es

w
103 Penang Road, #05–06/07, Visioncrest Commercial, Singapore 238467
y

Pr
op

ie
Cambridge University Press is part of the University of Cambridge.

ev
ity
C

It furthers the University’s mission by disseminating knowledge in the pursuit of

R
education, learning and research at the highest international levels of excellence.

rs
w
ie

ve

t-
www.cambridge.org
ev

Information on this title: www.cambridge.org/9781009320542

en
ni
R

© Cambridge University Press & Assessment 2024


U

m
This publication is in copyright. Subject to statutory exception
ge

ss
and to the provisions of relevant collective licensing agreements,
no reproduction of any part may take place without the written

se
id

permission of Cambridge University Press.


br

As
20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
am

y
Printed in Malaysia by Vivar Printing

op
&
-C

A catalogue record for this publication is available from the British Library
s

C
es

ISBN 978-1-009-32054-2 Paperback with Digital Access (1 Year)

w
ISBN 978-1-009-32055-9 Digital Learner's Book (1 Year)
y

Pr
op

ISBN 978-1-009-32053-5 eBook

ie
ev
Additional resources for this publication at www.cambridge.org/go
ity
C

Cambridge University Press has no responsibility for the persistence or accuracy

R
rs
w

of URLs for external or third-party internet websites referred to in this publication,


ie

ve

t-
and does not guarantee that any content on such websites is, or will remain,
accurate or appropriate. Information regarding prices, travel timetables, and other
ev

en
ni

factual information given in this work is correct at the time of first printing but
R

Cambridge University Press does not guarantee the accuracy of such information
m

thereafter.
ge

ss
se
id
br

As
am

y
op
&
-C

NOTICE TO TEACHERS
es

It is illegal to reproduce any part of this work in material form (including


w
y

photocopying and electronic storage) except under the following circumstances:


Pr
op

ie

(i) where you are abiding by a licence granted to your school or institution by the
Copyright Licensing Agency;
ev
ity
C

(ii) where no such licence exists, or where you wish to exceed the terms of a licence,
-R

and you have gained the written permission of Cambridge University Press;
rs
w

(iii) where you are allowed to reproduce without permission under the provisions
ie

ve

of Chapter 3 of the Copyright, Designs and Patents Act 1988, which covers, for
t
ev

example, the reproduction of short passages within certain types of educational


en
ni

anthology and reproduction for the purposes of setting examination questions.


R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
ge

ss
Endorsement statement

se
id
br
Endorsement indicates that a resource has passed Cambridge International’s rigorous

As
quality-assurance process and is suitable to support the delivery of a Cambridge
am

y
International curriculum framework. However, endorsed resources are not the only

op
&
suitable materials available to support teaching and learning, and are not essential to be
-C

used to achieve the qualification. Resource lists found on the Cambridge International

C
es
website will include this resource and other endorsed resources.

w
y

Pr
Any example answers to questions taken from past question papers, practice questions,
op

ie
accompanying marks and mark schemes included in this resource have been written

ev
ity
C

by the authors and are for guidance only. They do not replicate examination papers.
In examinations the way marks are awarded may be different. Any references to

R
rs
w

assessment and/or assessment preparation are the publisher’s interpretation of


ie

ve
the Cambridge International curriculum framework requirements. Examiners will

t-
not use endorsed resources as a source of material for any assessment set by
ev

en
ni
Cambridge International.
R

m
While the publishers have made every attempt to ensure that advice on the qualification
ge

ss
and its assessment is accurate, the official curriculum framework, specimen assessment
materials and any associated assessment guidance materials produced by the awarding

se
id

body are the only authoritative source of information and should always be referred to
for definitive guidance. Cambridge International recommends that teachers consider
br

As
using a range of teaching and learning resources based on their own professional
am

y
judgement of their students’ needs.

op
&
-C

Cambridge International has not paid for the production of this resource, nor does
s

C
Cambridge International receive any royalties from its sale. For more information
es

about the endorsement process, please visit

w
y

www.cambridgeinternational.org/endorsed-resources
Pr
op

ie
ev
Cambridge International copyright material in this publication is reproduced under licence
ity
C

and remains the intellectual property of Cambridge Assessment International Education.

R
rs
w

Third-party websites and resources referred to in this publication have not been endorsed
ie

ve

t-
by Cambridge Assessment International Education.
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

3
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
Introduction

en
ni
U

m
ge

ss
Introduction

se
id
br

As
am

y
op
&
-C

Welcome to Stage 6 of Cambridge Primary Computing!

C
es
Digital technology has changed the world over the past 50 years.

w
y

Pr
op

ie
We use technology in so many areas of our life, it is more important

ev
ity
C

than ever that we try to understand how technology works.

R
rs
w

In this book you will:


ie

ve

t-
ev

• learn how to use programming constructs such as sub-routines

en
ni
R

• create a game for a physical computing device that uses variables

m
ge

ss
• learn how data is collected and stored on a computer system

se
id

• investigate how data is processed


br

• explore how we can use artificial intelligence.


As
am

y
op
&
These computing ideas are not only part of our daily lives, but can be part
-C

C
of certain jobs that people do. People can have an entire career within
es

w
y

computing, and learning about computing here may just be the start of your
Pr
op

ie
future in computing! Using the computing knowledge and skills that you learn

ev
ity
C

from this book, you’ll gain a sense of how people who work in computing

R
rs
w

may carry out parts of their jobs. For example, programmers often work on
ie

ve

t-
projects as part of a team, and work together to test that their programs
ev

en
ni

work. Perhaps you could find a friend at school to work on a project with you.
R

We have created lots of activities and questions where you


ge

ss

can work with a partner or a group. Sharing your ideas


se
id

with other learners is fun and helps you have exciting


br

As

conversations about how computers and technology


am

are used.
y
op
&
-C

There is also a project for you to complete at the end


C
es

of each unit. These will cover the learning in each


w
y

Pr
op

ie

unit and help you to develop your understanding.


ev
ity
C

We hope you find learning about computers and


-R
rs
w

technology exciting, and that you will continue to


ie

ve

keep learning about computers as you grow older.


t
ev

en
ni
R

m
ge

ss

Ceredig Cattanach-Chell, Luke Craig and Sarah Matthews


se
id
br

As
am

4
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
Contents

en
ni
U

m
ge

ss
Contents

se
id
br

As
am

y
op
&
-C

C
How to use this book 6

es

w
y

Pr
1 Computational thinking and programming
op

ie
ev
ity
C

1.1 Planning flowcharts 9

R
rs
w

1.2 Programming constructs 19


ie

ve

t-
1.3 Sub-routines 34
ev

en
ni

1.4 Planning programs 52


R

m
1.5 Evaluating and testing programs 67
ge

ss
1.6 Using variables with a physical device 77

se
id
br

2 Managing data
As
am

y
2.1 Capturing data 95

op
&
-C

2.2 Creating a spreadsheet 119


s

C
es

2.3 Creating a database 135

w
y

Pr
op

2.4 How is data used? 149

ie
ev
ity
C

3 Networks and digital communication


R
rs
w

3.1 Storing and transferring data on a network 159


ie

ve

t-
ev

3.2 Securing data 174


en
ni
R

4 Computer systems
ge

ss

4.1 Selecting hardware and software 184


se
id

4.2 Programming environments 201


br

As

4.3 Storing data 209


am

y
op
&

4.4 Inside a computer 218


-C

4.5 Robots in industry 224


es

w
y

Pr

Glossary 234
op

ie
ev

Acknowledgements 247
ity
C

-R
rs
w
ie

Note for teachers: Throughout the resource there is a symbol to indicate where additional digital only content is
ve

provided. This content can be accessed through the Digital Learner’s Book on Cambridge GO. It can be launched
t
ev

en
ni

either from the Media tab or directly from the page. The symbol that denotes additional digital content is: .
The source files can also be downloaded from the Source files tab on Cambridge GO. In addition, this tab contains
R

a teacher guidance document which supports the delivery of digital activities and programming tasks in this
ge

ss

Learner’s Book.
se
id
br

As
am

5
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
How to use this book

en
ni
U

m
ge

ss
How to use this book

se
id
br

As
am

y
op
&
-C

C
es
In this book you will find lots of different features to help your learning.

w
y

Pr
op

ie
ev
What you will learn in

ity
C

the topic.

R
rs
w
ie

ve

t-
ev

en
ni
R

m
Important words
ge

ss
to learn.

se
id
br

As
am

y
op
&
A reminder about what you
-C

already know and an activity

C
es

to start you off.

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

Fun activities about computing.


m
ge

ss

Sometimes, you will use


se

a computer.
id
br

As
am

Some activities do not need a y


op
&

computer. These are called


-C

unplugged activities. They help


es

w
y

you to understand important ideas


Pr
op

ie

about computing.
ev
ity
C

-R
rs
w

Sometimes, you will see


ie

ve

this question. It will help


t
ev

en
ni

you to think about your work.


R

m
ge

ss
se
id
br

As
am

6
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
How to use this book

en
ni
U

m
ge

ss
Tasks to help you to practise

se
id
what you have learnt.

br

As
am

y
Programming tasks are in

op
&
Unit 1.
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
Practical tasks are in
ge

ss
Unit 2.

se
id
br

Look out for this icon. You are going


As
am

y
to do an activity at the computer

op
&
-C

using a source file or website link.


s

C
es

This content can be found in the

w
y

Pr
op

Digital Learner's Book on

ie
ev
Cambridge GO. Your teacher
ity
C

will help you to get started.


R
rs
w
ie

ve

t-
ev

Questions that help you to


en
ni
R

practise what you have just


U

learnt. Are you ready to move on?


ge

ss
se
id
br

As
am

y
op
&
-C

Things to remember when


C
es

you are doing a task.


w
y

Pr
op

ie
ev
ity
C

-R
rs
w

Interesting facts connected


ie

ve

to the topic.
t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

7
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
How to use this book

en
ni
U

m
ge

ss
Questions to help you think

se
id
about how you learn.

br

As
am

y
op
&
-C

C
What you have learnt

es
in the topic.

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
At the end of each unit, there
ev

en
ni

is a project for you to carry out,


R

m
using what you have learnt.
ge

ss
You might make something

se
id

or solve a problem.
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
Questions that cover what you
ev

en
ni

have learnt in the unit. If you can


R

answer these, you are ready to


ge

ss

move on to the next unit.


se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

8
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
Computational

U
1

m
ge

ss
se
id
br

As
thinking and
am

y
op
&
-C

C
es

w
y

Pr
op

programming

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni

1.1 Planning flowcharts


R

m
ge

ss
se
id

We are going to:


br

As
am

• understand that we can present algorithms as flowcharts

y
op
&
-C

• understand the shapes used in a flowchart


s

C
es

• predict the results of flowcharts.

w
y

Pr
op

ie
decision

ev
ity
C

flowchart

R
rs
w

input
ie

ve

t-
output
ev

en
ni

prediction
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

Getting started
w
y

Pr
op

ie

What do you already know?


ev
ity
C

• Algorithms follow a sequence (top to bottom, left to right).


-R
rs
w
ie

ve

• Algorithms can use inputs and outputs.


t
ev

en
ni

A conditional (IF THEN ELSE) block causes an algorithm to do


R


U

either one thing or another.


ge

ss
se
id
br

As
am

9
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Work with a partner. Think of something

op
&
-C

you do every day. Describe the task to

C
es
your partner as if it was an algorithm

w
y

Pr
that a computer could follow. Include all
op

ie
of the steps in the task, even if they might

ev
ity
C

seem obvious. Try to include a conditional

R
rs
w

statement in your algorithm.


ie

ve

t-
ev

en
For example:
ni
R

m
IF it is a school day THEN take out my school
ge

ss
uniform, ELSE take out my weekend clothes.

se
id

IF it is raining THEN . . . ELSE . . .


br

As
am

y
op
&
-C

Flowcharts
s

C
es

w
y

Pr
op

ie
There are many ways to represent algorithms. In Scratch, you use
Start

ev
ity

blocks to represent an algorithm. In the Getting started activity,


C

R
you used speech. You could have also written it down as text.
rs
w
ie

ve

t-
A flowchart is another way to represent an algorithm.
ev

Get a bowl
en
ni

A flowchart is a diagram that shows each step of an algorithm.


R

This is an example of a simple flowchart:


ge

ss

Pour in some
se
id

cereal
br

As
am

y
op
&
-C

Add milk
s

C
es

w
y

Pr
op

ie
ev
ity

Use your
C

Eat your breakfast


-R
rs

finger to follow
w
ie

ve

the flowchart.
t
ev

en
ni

End
R

m
ge

ss
se
id
br

As
am

10
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.1 Planning flowcharts

en
ni
U

m
ge

ss
To follow a flowchart, you begin at the start shape at the top and then

se
id
follow the arrow to the next step in the sequence.

br

As
We can use flowcharts to show a process that follows steps in the
am

y
same order. Engineers use flowcharts to show how to make things,

op
&
-C

and businesses use flowcharts to explain how to do things.

C
es

w
y

Pr
op

Unplugged activity 1

ie
ev
ity
C

Follow the steps in this flowchart.

R
rs
w

Start
1 Which action did you perform first?
ie

ve

t-
ev

2 Which action did you perform last?

en
ni
R

3 Which shapes does the flowchart use?

m
Clap twice
ge

ss
se
id
br

As Fold your arms


am

y
op
&
-C

C
es

w
y

Stamp your feet


Pr
op

ie
ev
ity
C

R
rs
w

Nod your head


ie

ve

t-
ev

en
ni
R

m
ge

ss

End
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

11
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Flowchart shapes

se
id
br

As
The shapes we use in a flowchart are important.
am

y
They provide more information about what is happening in the

op
&
-C

algorithm. Look at the table and read the descriptions with a partner.

C
es

w
y

Shapes Name Description

Pr
op

ie
ev
Start or end This shape appears at the beginning and

ity
C

R
end of the flowchart.
rs
w
ie

ve

t-
ev

en
ni

Connectors These arrows show the order the flowchart


R

m
should be followed in.
ge

ss
se
id

Input or We use this shape when the flowchart


br

output
As
needs to get an input (information from
am

y
the user), or when it needs to produce an

op
&
-C

output (give information to the user).

C
es

w
y

Process This shape shows actions that will be done.


Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

Decision A decision is a choice you make after


t-
ev

en

thinking about the options. We use this


ni
R

shape when we want to decide which


ge

ss

path to follow next. A flowchart decision


se
id

shape asks a question that can only have


br

As

a ‘yes’ or ‘no’ answer. It is very similar to


am

a conditional statement. y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

12
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.1 Planning flowcharts

en
ni
U

m
ge

ss
Unplugged activity 2

se
id
br
Look at this flowchart. With a partner,

As
am
follow the flowchart twice:

y
Start

op
&
-C

• once as if it was a school day

C
es
• once as if it was a weekend.

w
y

Wake up

Pr
op

ie
What do you notice?

ev
ity
C

R
rs
w

Brush your teeth


ie

ve

t-
ev

en
ni
R

m
Take out your No Yes Take out your
ge

ss
weekend clothes Is it a school day? school uniform

se
id
br

As
am

y
op
&
Get dressed
-C

C
es

w
y

Pr
op

Eat your breakfast

ie
ev
ity
C

R
rs
w

Morning routine
ie

ve

t-
complete
ev

en
ni
R

Question
m
ge

ss
se
id

1 What is the difference


br

between the cereal flowchart


As
am

at the start of this topic and y


op
&

the morning routine flowchart


-C

in Unplugged activity 2?
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

13
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Unplugged activity 3

se
id
br
Look at the flowcharts below. With a partner,

As
am
take it in turns to follow the flowcharts with your finger.

y
Start

op
&
-C

C
es

w
y

Ask the user for

Pr
op

ie
their username

ev
ity
C

Start

R
rs
w

Check the database


ie

ve

t-
of usernames
Pick a number
ev

en
ni

between 1 and 10
R

m
ge

ss
Display: “Username No Is there a record of
Multiply the

se
id

number by 2 not found. Try again.” this username?


br

As
am

y
Yes

op
&
Add 6 to the result
-C

Ask the user for


s

C
es

their password

w
y

Pr
op

ie
Halve the result

ev
ity
C

Check to see if the


password is correct

R
rs
w
ie

ve

t-
Subtract your original
ev

en
ni

number from the result


R

No
m

Display: “Password Is the password


incorrect. Try again.” correct?
ge

ss

Ask, “Are you left


se
id

with the number 3?”


Yes
br

As
am

Let the user into y


End
op
&

their account
-C

C
es

w
y

End
Pr
op

ie
ev
ity
C

1 With a partner, discuss what is happening in each of the flowcharts.


-R
rs
w
ie

2 Can you remind your partner what any of the different shapes mean?
ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

14
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.1 Planning flowcharts

en
ni
U

m
ge

ss
Unplugged activity 4

se
id
br

As
You will need: Worksheet 1.1
am

y
op
&
Arun draws a flowchart to show how his dad makes tea in the morning,
-C

C
but he isn’t sure which shapes he should use.

es

w
y

Pr
Look at his flowchart. With a partner, discuss which shape should go
op

ie
with each step.

ev
ity
C

R
rs
Use the worksheet to complete the flowchart so it includes the
w
ie

ve

t-
correct shapes and arrows.
ev

en
ni

Notice that there is a decision in this flowchart. Have a look at the


R

m
morning routine flowchart to remind yourself how a decision should
ge

ss
look. Think carefully about where the arrow from ‘No’ should point to.

se
id

Start
br

|
As
am

y
op
&
Turn the kettle on
-C

C
|
es

w
Wait
y

Pr
op

ie
|

ev
ity
C

Has the kettle boiled? (No)

R
rs
w

(Yes)
ie

ve

t-
|
ev

en
ni

Pour the water onto the tea


R

|
ge

ss

Add one spoonful of sugar


se
id

|
br

As

Stir well
am

y
op
&

|
-C

End
C
es

w
y

Pr

How are we doing?


op

ie
ev
ity
C

Swap your flowcharts with another pair. Have a look at their flowcharts.
-R
rs
w

• Did they remember to use an oval shape or a rectangle with rounded corners for
ie

ve

the beginning and end?


t
ev

en
ni

• Did they use a decision shape and draw arrows from the ‘Yes’ and ‘No’ labels?
R

• Are their arrows pointing in the correct directions?


ge

ss
se
id
br

As
am

15
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Questions

se
id
br

As
2 What shape should be at the start and end of a flowchart?
am

y
3 When should you use a rectangle in a flowchart?

op
&
-C

s
4 Why would you use a diamond in a flowchart?

C
es

w
y

Pr
op

ie
Activity 5

ev
ity
C

R
You will need: a desktop computer, laptop or tablet, simple design software
rs
w
ie

ve

t-
such as Word, PowerPoint or Canva
ev

en
ni

Use a computer to create a poster that explains what the different


R

m
shapes in a flowchart mean.
ge

ss
se
id

Use pictures and colour to make it more interesting.


br

As
am

y
op
&
-C

Following a flowchart
s

C
es

w
y

Pr
op

ie
ev
Programming task 1
ity
C

R
rs
w
ie

ve

t-
You will need: a desktop computer,
ev

Start
en
ni

laptop or tablet, access to Scratch and


R

source file 1.1_space_animation_template


ge

ss

Spaceship to fly
across the screen
se

Marcus had an idea for an animation about space.


id
br

He drew a flowchart showing what he wanted his


As
am

program to do. Now Marcus wants to make his animation Spaceship to land y
op
&

on a planet
using Scratch.
-C

C
es

Follow Marcus’s flowchart to create a Scratch project


w
y

Astronaut to
Pr

that follows the same steps. Use source file


op

ie

appear
1.1_space_animation_template to help you.
ev
ity
C

Some of the blocks have been provided.


-R
rs
w

Astronaut to say
The blocks need to be put into a sequence.
ie

ve

“This is the wrong


t
ev

planet!”
en
ni
R

m
ge

End
ss
se
id
br

As
am

16
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.1 Planning flowcharts

en
ni
U

m
ge

ss
Continued

se
id
br

As
How am I doing?
am

y
Run your code and check whether your program does

op
&
-C

the following. Give yourself a point if you have successfully

C
es
completed each step.

w
y

Pr
op

ie
• My spaceship flies across the stage.

ev
ity
C

• My spaceship looks like it is landing on a planet.

R
rs
w

• An astronaut appears after the spaceship has landed.


ie

ve

t-
• The astronaut says something.
ev

en
ni
R

m
ge

ss
se
id
br

What do you do to help you remember what the different


As
am

shapes in a flowchart mean?

y
op
&
-C

C
es

w
y

Pr
op

ie
Predicting the outcomes

ev
ity
C

R
of flowcharts
rs
w
ie

ve

t-
ev

en
ni

We can use flowcharts to make predictions.


R

When someone says what they think will happen


m
ge

ss

in the future, they are making a prediction.


se

Imagine a robot that was programmed to play chess


id
br

using a flowchart. If you understood the flowchart,


As
am

you would be able to predict where the robot might y


op
&

make its next move!


-C

C
es

People use more complex flowcharts and algorithms


w
y

Pr

to predict things in real life, such as who might be


op

ie

more likely to need certain types of healthcare or


ev
ity
C

how the value of gold might go up or down.


-R
rs
w
ie

ve

To predict the outcome of a flowchart, you need to


t
ev

en
ni

follow the steps of the flowchart to the end.


R

m
ge

ss
se
id
br

As
am

17
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Unplugged activity 6

se
id
br
Look at this flowchart to help fix a problem with a computer not working.

As
am

y
op
&
-C

Start

C
es

w
y

Pr
op

ie
ev
ity
C

Is the computer No Plug the computer


plugged into into the mains

R
rs
w

the mains?
ie

ve

t-
ev

en
Yes
ni
R

m
Is the power
ge

ss
No Plug the power cable
cable plugged into
into the computer

se
the computer?
id
br

As
Yes Can you
am

y
think of any other

op
&
Ask an adult
-C

for help real-world examples where


s

C
es

it might be useful to use

w
y

Pr

flowcharts to predict
op

ie
End

ev
outcomes?
ity
C

R
rs
w

Predict the outcome of the flowchart


ie

ve

t-
if the computer is plugged into the mains
ev

en
ni

and the power cable is plugged into the computer.


R

m
ge

ss
se
id
br

Look what I can do!


As
am

I know that we can present algorithms as flowcharts.


y
op
&
-C

I know the meaning of different shapes in a flowchart.


es

w
y

I can predict the outcome of a flowchart.


Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

18
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.2 Programming constructs

en
ni
U

m
ge

ss
1.2 Programming constructs

se
id
br

As
am

y
We are going to:

op
&
-C

C
• explore programming ideas including sequence, selection and iteration

es

w
y

Pr
op

• use arithmetic operators in our algorithms

ie
ev
ity
C

• create programs using different data types

R
rs
w

• develop a chatbot that uses different data types


ie

ve

t-
ev

en
ni

• program a talking clock that solves a real-life problem


R

m
• create a program with interaction that uses multiple programming ideas.
ge

ss
se
id
br

As
am

arithmetic operator input variable programming constructs

y
op
&
character integer selection
-C

C
chatbot interaction sequence
es

w
comparison operator iteration string
y

Pr
op

ie
condition operator variable

ev
ity
C

conditional statement procedure

R
rs
w
ie

ve

t-
ev

en
ni

Getting started
R

What do you already know?


ge

ss

How to use ‘repeat’ loops and conditionals in code.


se


id
br

As

• How to use mathematical operators for addition and subtraction.


am

y
op
&

• What variables are and how to use them in programs.


-C

C
es

• How to debug errors in code.


w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

19
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Look at the Scratch blocks below. How could you arrange them in a sequence

op
&
-C

to show how to play a simple two-player game like snakes and ladders?

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

20
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.2 Programming constructs

en
ni
U

m
ge

ss
Programming constructs Start

se
id
br

As
We can use lots of different programming ideas,
am

y
op
&
often called programming constructs, to create Get a bowl
-C

s
programs that solve problems. Programming

C
es
constructs are programming ideas such as

w
y

Pr
op

ie
sequence, selection and repetition. You learnt Pour in some

ev
cereal

ity
about these constructs in the previous chapter.
C

R
Let’s recap some of them now.
rs
w
ie

ve

t-
Sequence is the order in which instructions run in
ev

Add milk

en
ni

algorithms and programs. If the instructions are


R

m
in the wrong order, the algorithm or program may
ge

ss
not work in the way you want it to!

se
id

Eat your breakfast


Selection means choosing which commands
br

to run. A conditional statement is one way to use


As
am

y
op
&
selection. A conditional statement is a section of End
-C

code that tells your program to either

C
es

run one set of instructions or another

w
y

Pr
op

ie
set of instructions, depending on

ev
ity

whether a condition is true or false.


C

R
A condition is a situation that tells
rs
w
ie

ve

t-
the computer what to do next.
ev

en
ni

For example, you could develop a


R

program that asks the user to pick a


ge

ss

random number between 1 and 20.


se
id

If the user picks a number that is less


br

As

than 10, the program could say: ‘You


am

y
op
&

picked a one-digit number’.


-C

Or else, if the user picks a number


es

that is not less than 10, the program


y

Pr
op

ie

could say: ‘You picked a two-digit number’.


ev
ity
C

Even though you don’t know which number the user will pick,
-R
rs
w

the program can use selection to decide which instruction to follow.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

21
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Iteration means repeating something. When programming in

se
id
Scratch, we sometimes call iterators ‘repeat’ blocks or loops.

br

As
There are different types of iterators. A ‘forever’ loop is an iterator
am

y
that will keep repeating the code forever. A ‘repeat [10]’ block is an

op
&
-C

iterator that will repeat the code a set number of times.

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Which of
Pr
op

ie
these sequences use

ev
ity
C

an iterator?
R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As

Activity 1
am

y
op
&
-C

You will need: a desktop computer, laptop or tablet with presentation software
s

C
es

w
y

Imagine you are teaching someone about important programming constructs.


Pr
op

ie

Work with a partner to create a digital presentation to explain what sequence,


ev
ity
C

selection and iteration are. Try to use examples from your own programming.
-R
rs
w
ie

ve

t
ev

en
ni

Question
R

m
ge

ss

1 Why do you think iterators are useful in programming?


se
id
br

As
am

22
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.2 Programming constructs

en
ni
U

m
ge

ss
There are lots of other useful programming constructs that you

se
id
need to know about, including variables, operators, procedures

br

As
and interaction.
am

y
A variable is a named container

op
&
-C

(like a box) that stores a piece of

s
In programming,

C
es
data in your program. Even though
we use * for the multiply

w
y

Pr
the data in the variable might be
op

ie
operator instead of x, and /

ev
different each time you run

ity
C

your code, your program will still


for the divide operator,

R
rs
w

do the same thing with the data instead of ÷.


ie

ve

t-
ev

in the variable. You might use a variable to

en
ni
R

keep the score in a game or to store the user’s name.


U

m
ge

ss
An input variable is a type of variable that asks for information

se
id

from the user. In Scratch you could use the ‘ask’ block to create an
br

As
input variable.
am

y
We can use different types of operator in computer programs.

op
&
-C

An operator is a symbol that tells the program to do a certain action


s

C
es

with the information surrounding the operator, such as comparing,

w
y

Pr

adding, or working out if a statement is true or false.


op

ie
ev
ity
C

We can use arithmetic operators in computer programs that

R
rs
w

involve numbers. Arithmetic is another word for mathematics.


ie

ve

t-
Arithmetic operators are used to do calculations. The main
ev

en
ni

arithmetic operators are plus, minus, multiply and divide.


R

In Scratch, the blocks look like the example on the right.


ge

ss
se
id
br

Unplugged activity 2
As
am

y
op
&

You will need: a pen and paper


-C

C
es

With a partner, write out an algorithm for a simple program in Scratch


w
y

Pr
op

that uses arithmetic operators. For example:


ie
ev
ity
C

-R
rs
w

1 When the green flag is clicked


ie

ve

2 Say ‘What is 5 times 4?’ for 5 seconds


t
ev

en
ni
R

3 Say ‘The answer is ’ [5 * 4] for 5 seconds


m
ge

ss
se
id
br

As
am

23
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
We can also use comparison operators in programs that involve

se
id
numbers. There are three comparison operators in Scratch: greater

br

As
than, less than and equal to. They compare the first number with the
am

y
second number and output either true or false. Look at an example

op
&
on the right.
-C

C
es
A procedure is a small section of code that we can use multiple

w
y

Pr
times in a program. Using procedures can save time for developers
op

ie
ev
so they don’t need to keep writing the same set of commands.

ity
C

R
rs
w

Interaction is when one part of a program changes or affects another


ie

ve

t-
part. For example, in Scratch you might have two sprites and if one of
ev

en
ni

them touches the other, the first one might disappear or play a sound.
R

m
ge

ss
Data types

se
id
br

As
Computers store data in an organised way to make it easy to find
am

y
op
&
information quickly. One of the ways that computer programs
-C

organise information is by categorising data into different types.

C
es

We are going to look at three data types: integer, character

w
y

Pr
op

ie
and string.

ev
ity
C

R
rs
w

Integer
ie

ve

t-
ev

en
ni

An integer is a whole number. For example, 3 is an integer, but


R

3.14 or three are not integers. Programs can perform mathematical


ge

ss

operations with data items if they are integers.


se
id
br

As
am

Character
y
op
&
-C

C
es

A character is any individual letter, symbol or number. A is a


w
y

Pr

character and so is ! and 4. A computer keyboard is filled


op

ie

with characters!
ev
ity
C

-R

You use characters to create passwords. Often you need to include


rs
w
ie

ve

a mixture of letters, symbols and numbers to make sure that it is a


t
ev

en

strong password.
ni
R

m
ge

ss
se
id
br

As
am

24
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.2 Programming constructs

en
ni
U

m
ge

ss
String

se
id
br

As
If you combine characters, it creates data with another data type
am

y
called a string. Strings can also include spaces and are

op
&
-C

often used for written messages.

C
es
An example of a Scratch block that This is

w
y

Pr
op

ie
requires a string is the ‘say’ block: a string made up

ev
ity
C

of six characters. Can you

R
rs
w

think of any other Scratch


ie

ve

t-
blocks that use integers
ev

en
ni

or strings?
R

m
ge

ss
se
id

Unplugged activity 3
br

As
The Scratch blocks below all require an input of certain data types.
am

y
op
&
For each block, discuss with your partner which data type the block uses.
-C

C
es

1 4

w
y

Pr
op

ie
ev
ity
C

R
rs
w

2 5
ie

ve

t-
ev

en
ni
R

3
ge

ss
se
id
br

As
am

y
op
&

In Scratch,
-C

if you enter a string


es

w
y

where only the integer data


Pr
op

Yes. When
ie

type is accepted, Scratch will


ev
ity

I tried to do ‘three’ +
C

automatically convert
-R
rs

‘five’ it thought the


w

the string to 0.
ie

ve

answer was 0
t
ev

en
ni

because you
R

can’t add two


ge

ss

strings together.
se
id
br

As
am

y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
You are going to create a chatbot program that requires different data types.

se
id
A chatbot is a program that has been designed to speak and respond to a user

br

As
in a human way. Some chatbots listen to your voice and speak aloud, but other
am

y
chatbots respond online with text. They can sometimes answer questions and

op
&
-C

provide helpful information.

C
es

w
y

Pr
op

ie
Programming task 1

ev
ity
C

R
rs
w

You will need: a desktop computer, laptop or tablet, access to Scratch and
ie

ve

t-
source file 1.2_chatbot_example
ev

en
ni
R

m
Part A
ge

ss
se
id

Look at the code for a chatbot. Work with a partner to discuss what you
br

As
think this code will do. Explain each block in the sequence.
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Part B
Pr
op

ie
ev

Load source file 1.2_chatbot_example into Scratch and run the code.
ity
C

-R

Were your predictions correct?


rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

26
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.2 Programming constructs

en
ni
U

m
ge

ss
Continued

se
id
br

As
Part C am

y
op
&
Add comments to the code explaining the role of the different blocks.
-C

s
One of these blocks asks for a string input and the other requires an integer.

C
es

w
y

1 What happens if you type a string as a response for the integer question?

Pr
op

ie
2 What happens if you type an integer as a response for the string question?

ev
ity
C

3 There is an arithmetic operator block in this code. Did you spot it?

R
rs
w

Add a comment to this block explaining how this works.


ie

ve

t-
ev

en
ni

Part D
R

m
Change some of the blocks to make the program different.
ge

ss
Here are some ideas for things to try:

se
id
br

As
• Change the cat’s name.
am

y
• Add another greeting message before it asks a question.

op
&
-C

• Make the cat respond saying they know someone with the user’s name.
s

C
es

• Change the arithmetic operator so that it tells the user how old they

w
y

Pr
op

ie
will be next year.

ev
ity
C

Part E

R
rs
w
ie

ve

t-
Create your own version of a chatbot that uses the ‘ask’ block to get data
ev

en
ni

input from the user. In one of your questions, ask the user for an integer
R

so that you can perform a maths calculation in your response.


m
ge

ss

You could program your chatbot to:


se
id

• ask about the user’s favourite food and respond by saying you like to
br

As

eat that as well


am

y
op
&

• ask for the year the user was born and work out how old they are
-C

• ask them to think of a number between 1 and 10 and then respond by


es

w
y

saying you know what that number squared is, then tell them the answer.
Pr
op

ie
ev
ity
C

Stay safe!
-R
rs
w
ie

ve

Although chatbots can be really useful, it is important to remember that they


t
ev

en
ni

are only programs following an algorithm so their answers might not be very
R

reliable. Also, some hackers design chatbots to get your personal information.
ge

ss

Make sure you trust the website or app before responding to a chatbot.
se
id
br

As
am

27
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Solving a problem using different

se
id
br

As
programming ideas
am

y
op
&
-C

Computer programs are often designed to solve problems.

C
es

w
You are going to develop programs that solve real-life problems.
y

Pr
op

ie
The programs you create will use:

ev
ity
C

R
• conditional statements
rs
w
ie

ve

t-
• iteration
ev

en
ni

• variables
R

m
ge

ss
• arithmetic and comparison operators

se
id

• procedures
br

• interaction.
As
am

y
op
&
-C

Question
s

C
es

w
y

Pr
op

2 What does it mean when we use interaction in a program?

ie
ev
ity
C

R
rs
w

Programming task 2
ie

ve

t-
ev

en
ni

You will need: a desktop computer, laptop or tablet, access to Scratch and
R

source file 1.3_predict_activity


ge

ss
se
id

Part A
br

As
am

Work in a group of three. Look at this program. y


op
&

Discuss what you predict will happen


-C

when the code runs. Use the key words


es

w
y

‘variable’, ‘iterator’ and ‘comparison operator’.


Pr
op

ie

Look at the Glossary if you can’t remember


ev
ity
C

what these words mean.


-R
rs
w
ie

ve

Part B
t
ev

en
ni

Open source file 1.3_predict_activity and run


R

the code.
ge

ss
se
id
br

As
am

28
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.2 Programming constructs

en
ni
U

m
ge

ss
Continued

se
id
br

As
1 Did the program do what you predicted?
am

y
op
&
2 Did it count all the way to 20 or did it stop on
-C

s
a different number? Why do you think this happened?

C
es

w
3 How could you make it count faster or slower?
y

Pr
op

ie
4 Which data type did this program require?

ev
ity
C

R
Part C
rs
w
ie

ve

t-
Investigate what the ‘join’ operator does when you add it to the code.
ev

en
ni
R

Add the ‘join’ operator to the algorithm inside the ‘say’ block instead of the
U

m
number variable. Try some of the combinations below and click them to
ge

ss
see the output.

se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni

Part D
R

Modify the algorithm so that it becomes a times table counter.


ge

ss

Instead of counting to 20, it should count up in 5s or any number


se
id

you choose.
br

As
am

Hint: Most of the algorithm can remain the same but you will need y
op
&

to use the multiplication operator.


-C

C
es

How am I doing?
w
y

Pr
op

ie

Discuss with your partner how confident you feel, from 1 to 5, about each
ev
ity
C

of the statements below. 1 means you are not sure and 5 means you
-R
rs
w

are very confident.


ie

ve

• I understand what an iterator does.


t
ev

en
ni

• I can explain why iteration is useful.


R

m
ge

ss
se
id
br

As
am

29
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Scratch allows you to convert written text into spoken

se
id
language. We can use the ‘Text to Speech’ extension to do

br

As
this. You can find the ‘Add Extension’ button at the bottom of
am

y
the Scratch blocks palette. It looks like this:

op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

Programming task 3

R
rs
w
ie

ve

t-
ev

en
ni
You will need: a desktop computer, laptop or tablet, access to Scratch and
R

m
source file 1.4_talking_clock
ge

ss
Zara’s friend is blind. She can’t read the time on a standard clock so

se
id

Zara wants to create a program that will speak the time aloud for her.
br

As
am

She has started to pull together the blocks

y
op
&
that she thinks she will need in Scratch.
-C

C
Can you help her to complete
es

her project? Think about

w
y

Pr
op

ie
Open source file 1.4_talking_clock how you will use the

ev
ity
C

and use the ‘current [time]’ blocks, ‘Text to Speech’

R
rs
w

‘join’ operators and the ‘Text to extension!


ie

ve

t-
Speech’ extension to create a program
ev

en
ni

that provides a solution for this problem.


R

m
ge

ss

How are we doing?


se
id

Swap your program with a partner and evaluate whether the program
br

As

solves the problem for Zara’s friend. Look at the criteria below.
am

Give your partner’s program a score from 1 to 3 for each of the


y
op
&
-C

following (where 1 means ‘no’, 2 means ‘nearly’ and 3 means ‘yes’).


s

C
es

Does your talking clock:


w
y

Pr
op

ie

• say the time out loud?


ev
ity
C

• say the correct number of minutes?


-R
rs
w

• say the correct number of hours?


ie

ve

t
ev

en
ni

Discuss what could be done to make your program even better.


R

m
ge

ss
se
id
br

As
am

30
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.2 Programming constructs

en
ni
U

m
ge

ss
Programming task 4

se
id
br

As
am
You will need: a desktop computer, laptop or tablet, access to Scratch

y
op
&
and source file 1.5_Zara_talking_clock
-C

C
es
Developers often create programs that work and then try to think

w
y

Pr
op

ie
of ways to improve them.

ev
ity
C

Open source file 1.5_Zara_talking_clock and look at Zara's program.

R
rs
w

Although Zara’s program works, she has some ideas about how to
ie

ve

t-
make it even better. It uses a 24-hour clock. If you run the program
ev

en
ni

in the afternoon, it might say, ‘The time is 14:26’. She wants it to


R

m
use a 12-hour clock so that it will say '2:26' instead.
ge

ss
Help Zara solve this problem and improve her code. (Hint: You will

se
id

have to use a conditional block that checks to see if the current time is
br

As
before or after midday.) You might have your own ideas about things to
am

y
op
&
improve, too. You could also see if you can change the code so it says
-C

that the time is a certain number of minutes past the hour, or a certain

C
es

number of minutes to the hour.

w
y

Pr
op

ie
ev
ity
C

R
Bugs!
rs
w
ie

ve

t-
ev

en
ni

Did you notice any bugs in your code? Remember: debugging means
R

finding and fixing any errors in an algorithm or program.


m
ge

ss

For example, in the code below, if it was 1 minute past 10, this
se
id

program would say ‘One minutes past ten’ How would you fix this?
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

31
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
se
id
Errors are very common in computing, even for experienced

br

As
programmers. How do you feel when you realise you have
am

y
made an error in your code? What helps you to fix it?

op
&
-C

C
es

w
y

Pr
op

ie
Programming task 5

ev
ity
C

R
rs
w

You will need: a desktop computer, laptop or tablet, access to Scratch and
ie

ve

t-
ev

source file 1.6_interacting_sprites

en
ni
R

m
ge

ss
Part A

se
id

Open source file 1.6_interacting_sprites. Click the green flag and


br

As
follow the instructions.
am

y
op
&
Discuss with a partner how the different sprites interact with each other.
-C

C
Explain which other programming constructs are used in this program.
es

w
y

Pr
op

ie
Part B

ev
ity
C

Add another number sprite. When that sprite is clicked it should cause

R
rs
w

Devin to say the times table for that number.


ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id

Sequence, selection,
br

As

iteration, variables, sprite


am

interaction, arithmetic operators,


y
op
&
-C

procedures . . . You have learnt so many


C
es

programming constructs! Don’t worry –


w
y

Pr
op

ie

you don’t need to use them all in every


ev
ity
C

program. Think of them like tools


-R
rs
w

that you can use to help you


ie

ve

when programming!
t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

32
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.2 Programming constructs

en
ni
U

m
ge

ss
Look what I can do!

se
id
br
I can explain programming ideas including sequence, selection and iteration.

As
am

y
I can use arithmetic operators in my algorithms.

op
&
-C

I can create programs that use character, integer and string data types.

C
es

w
I can develop a chatbot that asks questions and uses the given answers.
y

Pr
op

ie
I can create a talking clock that solves a real problem.

ev
ity
C

R
I can create programs with interaction that use multiple programming ideas.
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

33
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
1.3 Sub-routines

se
id
br

As
am

y
We are going to:

op
&
-C

C
• learn that a sub-routine can be used multiple times in an algorithm

es

w
y

Pr
op

• understand how a sub-routine can be used across different algorithms

ie
ev
ity
C

• understand how to create algorithms with more than one variable

R
rs
w

• understand how variables can be used in different algorithms


ie

ve

t-
ev

en
ni

• develop a quiz program that uses sub-routines and variables


R

m
• develop a program where two sprites interrelate.
ge

ss
se
id
br

As
am

y
broadcast initialisation

op
&
-C

call interrelate
s

C
es

define sub-routine

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

Getting started y
op
&
-C

What do you already know?


s

C
es

• What sub-routines are.


w
y

Pr
op

ie

• How conditional statements (IF THEN ELSE) can be used


ev
ity
C

in an algorithm.
-R
rs
w
ie

How to use a variable to keep a score and how to add


ve


t
ev

or remove points.
en
ni
R

• The ‘ask’ block can store a response in the answer variable.


ge

ss
se
id
br

As
am

34
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.3 Sub-routines

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Look at the code below, which is used to control a dinosaur sprite.

op
&
-C

With a partner, predict what the program will do and explain how

C
es
the Score variable will work.

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

Using sub-routines
s

C
es

w
y

Pr
op

A sub-routine is a section of code that is separate from the main


ie
ev

code and performs a specific task. This section of code is often used
ity
C

-R

multiple times in an algorithm. Programmers use sub-routines to


rs
w
ie

ve

make their code easier to understand and to reduce repetition.


t
ev

en
ni

When we write a sub-routine for an algorithm, we have to define it.


R

To define a sub-routine means to give the sub-routine a name and


ge

ss

write all the instructions that need to be included in the sub-routine.


se
id
br

As
am

35
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
When we want to use a sub-routine, we can call it. You might call

se
id
someone’s name in the playground and they will respond. Calling a

br

As
sub-routine works in the same way: when you call, there is a response.
am

y
In programs, a sub-routine can be called more than once, and different

op
&
algorithms in the program can call the same sub-routine.
-C

C
es

w
y

Pr
op

ie
Using sub-routines within the same algorithm

ev
ity
C

R
rs
w

Imagine you are a gymnast preparing a routine for a performance.


ie

ve

t-
You have a list of instructions to follow. The instructions contain a
ev

en
ni

mixture of moves that you already know how to do, such as a


R

m
forward roll and a handstand. For example:
ge

ss
se
id

Handstand Forward roll


br

1 Put your hands in the air 1


As Crouch on the floor
am

y
op
&
2 Fall forwards 2 Put your head to the floor
-C

C
es

3 Stand upside down 3 Roll over

w
y

Pr
op

ie
4 Put your feet back on the floor

ev
ity
C

R
If the instructions for your routine included all of the steps for each move,
rs
w
ie

ve

t-
the instructions would be very long, especially if you were repeating the
ev

en

same moves multiple times.


ni
R

You could use sub-routines for each of these moves to help reduce
ge

ss

repetition. Each sub-routine could be used multiple times in the routine.


se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

36
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.3 Sub-routines

en
ni
U

m
ge

ss
Unplugged activity 1

se
id
br

As
You will need: a pen and paper
am

y
op
&
Look at the algorithm below for a gymnastics routine.
-C

C
Identify where sub-routines could be used to remove repetition

es

w
y

and make the routine easier to understand. Write down the new algorithm.

Pr
op

ie
ev
ity
C

1 Put your hands in the air

R
rs
w
ie

ve
Fall forwards

t-
2
ev

en
ni

3 Stand upside down


R

m
4 Put your feet back on the floor
ge

ss
Step to the right

se
5
id
br

As
6 Step to the left
am

y
op
&
7 Crouch on the floor
-C

C
8 Put your head to the floor
es

w
y

Pr

9 Roll over
op

ie
ev
ity
C

10 Do a star jump

R
rs
w

11 Crouch on the floor


ie

ve

t-
ev

12 Put your head to the floor


en
ni
R

13 Roll over
ge

ss

14 Put your hands in the air


se
id

15 Fall forwards
br

As
am

16 Stand upside down y


op
&
-C

17 Put your feet back on the floor


s

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

37
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Questions

se
id
br

As
1 How many times is each sub-routine called in your
am

y
new algorithm for Unplugged activity 1?

op
&
-C

2 How would sub-routines help if you Did you see how

C
es
needed to give instructions for a using sub-routines helps

w
y

Pr
op

gymnastics routine with 5 different

ie
to reduce the length of

ev
moves that were called multiple

ity
C

the instructions?
times each?

R
rs
w
ie

ve

t-
ev

en
ni

Using sub-routines in different algorithms


R

m
ge

ss
We can also use the same sub-routine in two (or more) different

se
id

algorithms. Imagine you want to create two new gymnastics routines


br

As
for a competition. You can use the same sub-routine in both of these
am

y
routines. For example:

op
&
-C

C
es

DEFINE handstand DEFINE forward roll

w
y

Pr
op

ie
1 Put your hands in the air 1 Crouch on the floor

ev
ity
C

2 Fall forwards 2 Put your head to the floor

R
rs
w

Stand upside down Roll over


ie

3 3
ve

t-
ev

en
ni

4 Put your feet back on the floor


R

m
ge

ss
se
id

Routine 1 Routine 2
br

As

1 CALL forward roll 1 Do a star jump


am

y
op
&

2 CALL forward roll 2 CALL handstand


-C

3 CALL handstand 3 Clap your hands


es

w
y

Pr

4 Turn around 4 CALL forward roll


op

ie
ev

Do a star jump CALL handstand


ity

5 5
C

-R
rs
w

6 CALL forward roll


ie

ve

Turn around
t

7
ev

en
ni
R

m
ge

ss
se
id
br

As
am

38
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.3 Sub-routines

en
ni
U

m
ge

ss
Unplugged activity 2

se
id
br

As
You will need: a pen and paper
am

y
op
&
Write algorithms for two different gymnastics routines that both use the
-C

C
sub-routines for a handstand and a forward roll.

es

w
y

Pr
You can create more sub-routines for other gymnastics moves if you like!
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni

Using variables in algorithms


R

m
ge

ss

You have already started to use variables in your programs.


se
id

Remember: a variable stores data that can change.


br

As

This makes it a very useful programming construct.


am

y
op
&
-C

Using more than one variable in an algorithm


C
es

w
y

Pr
op

ie

Sometimes, we need to use more than one variable in an algorithm or


ev
ity
C

program. This allows us to make our programs more complex.


-R
rs
w

For example, in a quiz game, we might want:


ie

ve

t
ev

• a variable for the score, so we can keep track of how many points
en
ni
R

a player has scored


m
ge

ss

• a variable for ‘lives’, to limit the number of times a player can answer
se
id

a question incorrectly.
br

As
am

39
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Questions

se
id
br

As
Look at this algorithm that uses two variables:
am

y
op
&
-C

s
1 When green flag clicked

C
es

w
Set Score to 0
y

Pr
op

ie
3 Set Lives to 3

ev
ity
C

Say ‘Welcome to this quiz!’ for 2 seconds

R
4
rs
w
ie

ve

t-
5 Ask ‘What is 3 + 4?’ and wait
ev

en
ni

6 IF answer = 7
R

m
7 THEN change Score by 1
ge

ss
se
id

8 ELSE change Lives by -1


br

As
am

y
op
&
3 What are the names of the two variables the programmer
-C

C
has created?
es

w
y

4 What data does each variable store at the beginning?


Pr
op

ie
5 What would happen to the variables if the player entered 5

ev
ity
C

as their answer?

R
rs
w

6 What would happen to the variables if the player entered 7


ie

ve

t-
ev

as their answer?
en
ni
R

7 How could you change the program so that you started with
m

5 lives?
ge

ss
se

8 How could you change the program so that the player would
id
br

receive 2 points for the correct answer?


As
am

y
op
&
-C

Using the same variable in


s

C
es

w
y

different algorithms
Pr
op

ie
ev
ity
C

We can also use the same variable in two different algorithms.


-R
rs
w
ie

ve

For example, in Scratch, the ‘ask’ block could be used to store a


t
ev

en

response from the user in the answer variable. Two different sprites
ni
R

could then use the information stored in the answer variable in their
m
ge

ss

own separate algorithms.


se
id
br

As
am

40
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.3 Sub-routines

en
ni
U

m
ge

ss
Unplugged activity 3

se
id
Look at the code below. There are two separate sprites and they both

br

As
use the answer variable in their algorithms.
am

y
op
&
Discuss with a partner what both the sprites will say if the user entered
-C

C
the answer ‘basketball’.

es

w
y

Pr
Hanif Temi
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

With your partner, think of another question this program could ask
Pr
op

ie
the user. Discuss how both of these sprites could use the answer

ev
ity
C

variable in their algorithms.

R
rs
w
ie

ve

t-
ev

en
ni
R

Developing programs with


ge

ss
se
id

sub-routines
br

As
am

We can use block-based programming languages to y


op
&

develop programs with sub-routines. Block-based


-C

C
es

programming languages allow users to drag and drop


w
y

code blocks to create programs. Scratch is an example


Pr
op

ie

of a block-based programming language. You will learn


ev
ity
C

more about the difference between block-based


-R
rs
w

and text-based programming languages in Unit 4.


ie

ve

t
ev

We can create sub-routines in Scratch using the


en
ni
R

‘broadcast’ and ‘receive’ blocks. To broadcast means to


m

send a message out into the world for people to receive.


ge

ss
se
id
br

As
am

41
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
In real life, messages are sent around the world and even into space

se
id
using broadcast masts like the one in the photo on the previous page.

br

As
In Scratch, using a ‘broadcast’ block is a bit like sending a signal or
am

y
message to all the other sprites and scripts in the project.

op
&
-C

C
es

w
Programming task 1
y

Pr
op

ie
ev
ity
C

You will need: a desktop computer, laptop or tablet, access to Scratch and

R
rs
w

source file 1.7_car_game_subroutine


ie

ve

t-
ev

en
ni

Look at the code for this


R

m
car game. With your partner,
ge

ss
go through each of the blocks

se
id

in the algorithm and explain


br

As
what they do. There is a
am

y
sub-routine used somewhere

op
&
-C

in the code. See if you can find


s

C
es

it and explain what it does.

w
y

Pr
op

ie
Open source file

ev
ity

1.7_car_game_subroutine in
C

R
Scratch. Run the code and see
rs
w
ie

ve

t-
if your predictions were correct.
ev

en
ni

How many times did the


R

sub-routine run?
ge

ss

Add a comment to the


se
id

sub-routine code explaining


br

As

how it works.
am

y
op
&
-C

This program uses


es

initialisation. Initialisation
y

Pr
op

ie

means getting everything ready for


ev
ity
C

the start of the game. The ‘go to x: (-100)


-R
rs
w

y: [110]’ block and the ‘point in direction


ie

ve

[90]’ block at the start of the main


t
ev

en
ni

code reset the car back to the same


R

position each time the green


ge

ss

flag is clicked.
se
id
br

As
am

42
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.3 Sub-routines

en
ni
U

m
ge

ss
Sub-routines can be very useful for developers when they are

se
id
creating programs that might repeat sets of instructions.

br

As
In the program on the previous page, the developers could make
am

y
it a two-player game and add a second car sprite for another player.

op
&
If this car goes off track, they could call the same ‘Off course!’
-C

C
sub-routine instead of having to recreate the algorithm.

es

w
y

Pr
op

ie
Did you know?

ev
ity
C

R
The sub-routine in Programming task 1 was created using
rs
w
ie

ve
the ‘broadcast’ block. You can also create a sub-routine in

t-
ev

en
Scratch using ‘Make a Block’. It is very similar to the
ni
R

‘broadcast’ block but you can use it in more complex ways.

m
ge

ss
se
id

Question
br

As
am

y
op
&
9 Can you think of other times when a sub-routine might be useful in real life?
-C

C
es

w
y

Pr

Using variables and


op

ie
ev
ity
C

sub-routines to create a quiz


R
rs
w
ie

ve

t-
Have you ever done an online quiz? When you get a
ev

en
ni

question correct, what might happen? What might happen


R

if you get a question wrong?


ge

ss

Online quizzes often use conditional logic in their algorithms.


se
id
br

For example: IF the answer is correct, THEN give the player


As
am

a point, ELSE say ‘Game over’. y


op
&

Quizzes require input from the player to get their


-C

C
es

answer. In Scratch, we can do this using the ‘ask’


w
y

block, which asks the player a question and opens a


Pr
op

ie

typing box. The player can then enter their answer,


ev
ity
C

which is stored in the ‘answer’ variable.


-R
rs
w
ie

ve

If the player gets an answer correct, there might be


t
ev

en

a few possible actions that happen in the code, and


ni
R

these possible actions might be the same for all the


m
ge

other questions. This provides a good opportunity


ss

to use sub-routines.
se
id
br

As
am

43
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Creating a spelling quiz Stay safe!

se
id
Some online quizzes have chat

br

As
Do you have spelling quizzes at school?
features, but you should only
am

y
op
&
We can create a similar quiz in Scratch, speak to people you know and
-C

s
where we tell the user which word they need trust online. Tell a trusted adult

C
es
to spell. However, we can’t display the word if you see anything that makes

w
y

Pr
op

ie
as written text because this would give the you feel uncomfortable.

ev
ity
C

user the answer!

R
rs
w
ie

ve

t-
Activity 4
ev

en
ni
R

You will need: a desktop computer, laptop or tablet, access to Scratch

m
ge

ss
Click the ‘Add Extension’ button in the bottom

se
id

left corner of the Scratch screen. Select the


br

‘Text to Speech’ extension, which looks like this:


As
am

y
op
&
A new set of blocks will appear in the blocks
-C

C
palette. They look like this:
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

Try these blocks out and investigate what they do.


es

w
y

Pr

Can you:
op

ie
ev
ity
C

• make a block speak your name?


-R
rs
w

• make a block speak a sentence?


ie

ve

t
ev

• change the way the voice sounds?


en
ni
R

• make a program that speaks a sentence in a different accent?


ge

ss
se
id
br

As
am

44
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.3 Sub-routines

en
ni
U

m
ge

ss
Before you program the spelling quiz, you need to create a plan.

se
id
br

As
Unplugged activity 5
am

y
op
&
As a class, discuss what features
-C

C
might be included in a good online

es

w
quiz. What might happen if the
y

Pr
op

ie
player gets an answer correct or

ev
ity
C

incorrect? How might you achieve

R
rs
w

this using Scratch blocks?


ie

ve

t-
With a partner, use the criteria below
ev

en
ni

to write an algorithm for your Scratch


R

m
quiz on paper.
ge

ss
Things to include:

se
id
br

As
• at least two variables (Will you
am

y
have a score? Will your program

op
&
have lives?)
-C

C
es

• sub-routines to reduce repetition.

w
y

Pr
op

ie
If a user gets an answer correct, the program should:

ev
ity
C

• play the sound ‘Tada’

R
rs
w
ie

ve

• give them a point


t-
ev

en
ni

• say ‘Correct!’
R

• change the backdrop to ‘Party’.


ge

ss

If the user gets an answer wrong, the program should:


se
id
br

As

• play the ‘Clang’ sound


am

y
op
&

• deduct one life


-C

• say ‘Not quite . . . ’


es

w
y

Pr

• change the backdrop to ‘red’ (you might need to create this backdrop).
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

45
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Programming task 2

se
id
br

As
am
You will need: a desktop computer, laptop or tablet, access to Scratch,

y
op
&
source file 1.8_spelling_quiz_incomplete and your algorithm from
-C

C
Unplugged activity 5

es

w
y

Pr
op

ie
Open source file 1.8_spelling_quiz_incomplete and sequence the blocks to

ev
ity
C

create a program that asks the user to spell the word ‘variable’.

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

Answer the questions:


w
y

Pr
op

ie

1 Explain how you use both variables in this program.


ev
ity
C

2 What would happen if the user spelt the word using a capital letter?
-R
rs
w

Using the Scratch project, investigate this and think about what it
ie

ve

might mean for your quiz.


t
ev

en
ni

3 How could you modify the program to ask for a different spelling?
R

m
ge

4 How could a sub-routine be used in this program?


ss
se
id
br

As
am

46
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.3 Sub-routines

en
ni
U

m
ge

ss
Unplugged activity 6

se
id
Look at the code below. Work with a partner to trace the code

br

As
am
starting at the green flag block. Explain what the code does.

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As

With your partner, discuss why using sub-routines in the quiz might
am

be more useful than not using them, and then share your ideas with y
op
&

the rest of the class.


-C

C
es

As you create
y

Pr
op

ie

more complex programs,


ev
ity
C

using sub-routines will make it


-R
rs
w

much easier to test and find errors


ie

ve

in your code. It is a very good


t
ev

en
ni

skill to learn!
R

m
ge

ss
se
id
br

As
am

47
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Programming task 3

se
id
br

As
am
You will need: a desktop computer, laptop or tablet, access

y
op
&
to Scratch, source file 1.9_spelling_quiz_no_subroutines and
-C

C
source file 1.10_spelling_quiz_subroutines

es

w
y

Pr
op

ie
You are going to extend the spelling test program to ask for two

ev
ity
C

more spellings.

R
rs
w

Work in a pair. One of you should use source file 1.9 (the spelling quiz
ie

ve

t-
without sub-routines), while the other should use source file 1.10
ev

en
ni

(the spelling quiz with sub-routines).


R

m
Add two new spelling questions to the program. Ask for the spellings
ge

ss
of the words ‘subroutine’ and ‘conditional’.

se
id
br

What do you notice when comparing your programs?


As
am

y
op
&
-C

C
es

Programming task 4

w
y

Pr
op

ie
You will need: a desktop computer, laptop or tablet, access to

ev
ity
C

Scratch, your Scratch programs from Programming task 4 or

R
rs
w

source file 1.11_spelling_quiz_no_subroutines_solution and


ie

ve

t-
ev

source file 1.12_spelling_quiz_subroutines_solution


en
ni
R

When developing code, programmers may decide to adapt their code to


ge

ss

improve its function. You are going to make the quiz do something slightly
se
id

different when an answer is correct.


br

As
am

You are going to make changes to both versions of the code: the y
op
&

Programming task 4 solution that does not use sub-routines and


-C

the solution that uses sub-routines. Make the following changes:


es

w
y

• Instead of saying ‘Correct!’, change the message to: ‘Well done!


Pr
op

ie

You get a point.’


ev
ity
C

• Change the sound from ‘Tada’ to ‘Cheer’.


-R
rs
w
ie

ve

Once you have made these changes, discuss with a partner how you did it.
t
ev

en
ni

Was it easier to make the changes to the solution without sub-routines,


R

or the solution with sub-routines? Why?


ge

ss
se
id
br

As
am

48
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.3 Sub-routines

en
ni
U

m
ge

ss
Continued

se
id
br

As
How am I doing?
am

y
For each of the following statements, give yourself a 1 if you don’t agree,

op
&
-C

a 2 if you partially agree and a 3 if you fully agree.

C
es
• I added more questions to the spelling program using conditionals

w
y

Pr
op

ie
(IF THEN ELSE).

ev
ity
C

• I used the ‘broadcast’ block to call the relevant sub-routines if the

R
rs
w

user was correct or incorrect.


ie

ve

t-
• I understand the benefits of using sub-routines in a program.
ev

en
ni
R

m
ge

ss
se
id

Think about when you have learnt a new way of doing


br

As
a task, that was hard at first, but made the task easier in the end.
am

y
op
&
What did you do to adapt to the new way?
-C

C
es

w
y

Pr
op

ie
ev
ity
C

Developing programs where multiple


R
rs
w
ie

ve

t-
algorithms interrelate
ev

en
ni
R

When learning about object interaction, you learnt how to create algorithms
ge

ss

where two objects interrelate.


se
id
br

As
am

Remember, y
op
&
-C

objects that interrelate


s

C
es

are connected so that


w
y

Pr

each object has an


op

ie
ev

effect on, or depends


ity
C

-R

on, the other.


rs
w
ie

ve

t
ev

en
ni
R

In Scratch, multiple algorithms for sprites can interrelate through sub-routines.


m
ge

ss

In the following program, there are two sprites that interrelate.


se
id
br

As
am

49
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
The dancing man sprite (in the centre of the stage) has a variety of sub-routines

se
id
for different dance moves. What do you think would happen if you clicked one of

br

As
these sub-routines?
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs

The sprite, Anina (on the left of the stage) uses the ‘broadcast’ block to call
w
ie

ve

t-
some of these sub-routines which causes the man to dance.
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

50
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.3 Sub-routines

en
ni
U

m
ge

ss
Programming task 5

se
id
br

As
am
You will need: a desktop computer, laptop or tablet, access to Scratch

y
op
&
and source file 1.13_dancing_program
-C

C
es
Open source file 1.13_dancing_program.

w
y

Pr
op

ie
1 Click on the dancing man sprite and click on the sub-routines.

ev
ity
C

2 Click the green flag to see what the program does.

R
rs
w

3 Modify the female host’s algorithm to make the man complete a different
ie

ve

t-
ev

combination of his dance moves.

en
ni
R

4 Create a new sub-routine for the dancing man and call it from the

m
ge

female host’s algorithm.

ss
se
id
br

As
am

y
Look what I can do!

op
&
-C

I know that a sub-routine can be used multiple times in an algorithm.

C
es

w
y

I understand how a sub-routine can be used across different algorithms.


Pr
op

ie
I understand how to create algorithms with more than one variable.

ev
ity
C

R
rs

I understand how variables can be used in different algorithms.


w
ie

ve

t-
I can develop a quiz program that uses sub-routines and variables.
ev

en
ni

I can develop a program where two sprites interrelate.


R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

51
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
1.4 Planning programs

se
id
br

As
am

y
We are going to:

op
&
-C

C
• understand how a clear plan can improve a program

es

w
y

Pr
op

• describe how prototypes are useful when designing programs

ie
ev
ity
C

• create a plan for a programming project

R
rs
w

• develop an interface for a program


ie

ve

t-
ev

en
ni

• use a plan to develop a rock, paper, scissors game in Scratch.


R

m
ge

ss
se
id
br

decomposition prototype
As
am

y
interface prompt

op
&
-C

prioritising random
s

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id

Getting started
br

As

What do you already know?


am

y
op
&

• Variables are used to store data in a program.


-C

C
es

• The value stored in a variable can change while a program runs.


w
y

Pr
op

ie

• The ‘ask’ block in Scratch prompts the user for an answer and stores
ev
ity
C

it in the ‘answer’ variable.


-R
rs
w

• The ‘random’ block in Scratch can generate a random number.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

52
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.4 Planning programs

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Think about a time when you created a program in Scratch. Did you plan

op
&
-C

what you wanted the program to do before you started programming?

C
es
How did you do this? Did the plan help you to create your program? Why?

w
y

Pr
op

ie
Share your ideas with the rest of the class.

ev
ity
C

R
rs
w
ie

ve

t-
Planning programs
ev

en
ni
R

m
When programmers work on a new program, they need to
ge

ss
plan their work and the project in advance. The program is

se
id

more likely to be a success if they spend time planning what


br

As
the program will do and how it might look for the user.
am

y
Decomposition is the process of taking a complex problem

op
&
-C

and breaking it down into smaller parts. These parts can be


s

C
es

worked on one by one. Programmers often use decomposition

w
y

Pr
op

when they write project plans for complicated programs.

ie
ev
ity
C

A project plan might include a list of these smaller

R
rs
w

decomposed parts that the program will need to do. It might


ie

ve

t-
include sketches and annotations (labels or notes) and it might
ev

en
ni

be handwritten or typed. Different people like to plan their


R

projects in different ways.


ge

ss

In this topic, you are going to create


se
id

a project plan and an interface


br

As

prototype for a Scratch game of rock,


am

paper, scissors. You will then follow


y
op
&
-C

your project plan to create the game.


s

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

53
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Unplugged activity 1

se
id
br

As
You will need: a pen and paper
am

y
op
&
Create a project plan for a Scratch game of rock, paper,
-C

C
scissors for a user to play against the computer.

es
Maybe the game

w
y

Pr
Use the questions below to help you. On your
op

ie
could begin with a welcome

ev
own, think about each question and what the

ity
C

message. The sprite could do a


solution might be. Try to think of as many

R
rs
w

cartwheel, and maybe it could


solutions as you can for each question and
ie

ve

t-
ask for the user’s name and
ev

write them down.

en
ni

say hello to them . . .


R

m
• How will the game begin?
ge

ss
• How will the user input their choice of rock, paper or scissors?

se
id

• How will the computer make its choice?


br

As
am

y
• How will the program know who has won?

op
&
-C

• How will the sprites react?


s

C
es

w
• Will there be a scoring system?
y

Pr
op

ie
• How long will the game last?

ev
ity
C

R
Now discuss your ideas with your partner. Did you have any
rs
w
ie

ve

similar solutions? Were any of your ideas very different?


t-
ev

en
ni
R

The game interface


ge

ss
se
id

It is important when planning a program that


br

As

you consider what it will look like for the user


am

as well as how the programming will work.


y
op
&
-C

The interface is what the user will see on the


s

C
es

screen when they use a program. In Scratch,


w
y

Pr
op

the user may not always see all the code,


ie
ev

but they will see how the sprites look, when


ity
C

the backdrops change and any messages


-R
rs
w
ie

that appear.
ve

t
ev

en
ni

The interface of a program is really important


R

because it tells or shows the user what they


ge

ss

need to do.
se
id
br

As
am

54
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.4 Planning programs

en
ni
U

m
ge

ss
Think about some of your favourite online games. What do you see

se
id
on the screen when you start the game? Different games might have

br

As
different controls. At the start of a game there is often a screen with
am

y
instructions on how to play. Some games use the arrow keys to control

op
&
a sprite. Other games might use the mouse.
-C

C
es
A prompt is a message on the screen

w
y

Pr
that shows a program is waiting
op

ie
ev
for input. Sometimes the interface

ity
C

might prompt you for information,

R
rs
w

such as your name, which character


ie

ve

t-
ev

you want to play as, or to find out

en
ni
R

whether you are ready to begin.


U

m
These are important features of the
ge

ss
game’s interface.

se
id
br

As
Programmers often use design
am

y
programs to design an interface for a

op
&
program, but sometimes they start by
-C

C
sketching their ideas out on paper.
es

w
y

Pr
op

ie
ev
Did you know?
ity
C

R
rs
w

People who work on how a program looks are sometimes called ‘front-end
ie

ve

t-
developers’, while people who work on the programming that users don’t
ev

en
ni

see are sometimes called ‘back-end developers’.


R

m
ge

ss
se
id

Unplugged activity 2
br

As
am

You will need: paper and colouring pens or pencils


y
op
&
-C

Design an interface for your rock, paper, scissors game.


es

w
y

Pr

Your game’s interface will look different at different times. Choose a certain
op

ie

time in your game and draw a sketch of what the interface might look like
ev
ity
C

for your user. Add annotations to your sketch to include more information.
-R
rs
w
ie

ve

At some times in your game, you might need to add a prompt which will
t
ev

en
ni

ask the user for information, such as when they need to choose rock,
R

paper or scissors. Annotate your drawings with any prompts you


ge

ss

might include.
se
id
br

As
am

55
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Continued

se
id
br
Repeat this process for other times or

As
am
situations in your game. For example:

y
op
&
• the beginning of the game
-C

C
es
• when the user has to choose

w
y

Pr
op

either rock, paper or scissors

ie
ev
ity
C

• when the user wins a round

R
rs
w

Enter your name


• when the user loses a round
ie

ve

t-
Press this button to start a game
ev

en
• when the game is over.
ni
R

m
ge

ss
How am I doing?

se
id

Share your ideas with the rest of the class and compare
br

each other’s sketches.


As
am

y
op
&
Which ideas did you see on someone else’s
-C

C
plan that you might use in your program?
es

Developers share

w
y

Did you have any ideas that other


Pr
op

ie
people wanted to use? programming ideas all

ev
ity
C

the time and it helps

R
rs
w

them improve.
ie

ve

Prototypes
t-
ev

en
ni
R

When developers create new programs, they often


m
ge

ss

spend time planning what they want the program


to do and then create a prototype of the program.
se
id
br

A prototype is a basic version of something that users


As
am

can test. The users provide feedback about how the y


op
&

program could be improved. The developers might


-C

make changes to the program based on the feedback.


es

w
y

Pr

Programmers use prototypes all the time: when


op

ie

designing apps, when creating websites and even


ev
ity
C

when building robots. It is a bit like writing a story:


-R
rs
w

first you might plan what will happen, then you


ie

ve

might write a first draft (the prototype) and get


ev

en
ni

feedback from your friends or teachers, and then


R

you might make changes based on the feedback.


ge

ss

Even popular games consoles, like the Nintendo DS,


se
id
br

As
am

56
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.4 Planning programs

en
ni
U

m
ge

ss
started as a prototype before the final product

se
id
was released in 2004.

br

As
Here are some of the benefits of creating a prototype:
am

y
op
&
• Allows programmers to see their ideas working
-C

C
in a simple way.

es

w
y

• Helps programmers to think about what else

Pr
op

ie
they could add to their program.

ev
ity
C

• Easier to fix mistakes at the prototype stage.

R
rs
w
ie

ve

t-
• Means other people can see how the program
ev

en
ni

might look and add their ideas.


R

m
• Allows users to provide feedback at an early stage
ge

ss
while it is easy to make changes.

se
id
br

As
am

Questions

y
op
&
-C

C
es

1 What activities do you do at school that work best when

w
y

they have been well planned?


Pr
op

ie
2 What about outside of school?

ev
ity
C

R
rs
w

Activity 3
ie

ve

t-
ev

en
ni

You will need: your interface design from Unplugged activity 2,


R

a desktop computer or laptop, access to Scratch


ge

ss
se
id

Use your design from Unplugged activity 2 to create a prototype of the


br

As

interface for your rock, paper, scissors game.


am

y
op
&

Your prototype could include:


-C

• a screen design – think about creating a simple graphic


es

w
y

Pr

• a message to welcome the user and explain the rules of the game
op

ie
ev
ity
C

• an ‘ask’ block to store the user’s name in the answer variable.


-R
rs
w

Your prototype must include:


ie

ve

t
ev

• a prompt to ask your user if they want to choose rock, paper or scissors.
en
ni
R

Remember: you do not need to create the full rock, paper, scissors game!
ge

ss
se
id
br

As
am

57
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Using project plans to

se
id
br

As
develop programs
am

y
op
&
-C

Once developers have created a project plan and planned and

C
es
designed the interface of a program, they can start thinking about

w
y

Pr
op

programming the different parts.

ie
ev
ity
C

As part of planning, programmers may introduce features such as

R
rs
w

randomness. This is important in programming, especially with online


ie

ve

t-
games. Random means that you can’t predict what the outcome will
ev

en
ni

be. In a racing game like Super Mario Kart, you might get a random
R

m
bonus after driving through a mystery box.
ge

ss
se
id

Prioritising
br

As
am

y
op
&
Once a programmer has created a project plan, they need to decide
-C

C
which part to program first. This is called prioritising. It usually makes
es

sense to prioritise the more complex parts of the problem and work on

w
y

Pr
op

ie
them first.

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As

Sofia has created a project plan for the game of rock, paper, scissors.
am

There are two complex parts:


y
op
&
-C

• Program the computer to make a random choice (one that cannot


C
es

be predicted) of rock, paper or scissors and store that choice.


w
y

Pr
op

ie

• Get the program to work out who has won a round – the user or
ev
ity
C

the computer.
-R
rs
w

Once these parts have been programmed and


ie

ve

Which part should


t
ev

are working, then other details can become


en
ni

I program first?
R

the focus, such as the appearance of sprites


U

and the content of messages.


ge

ss
se
id
br

As
am

58
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.4 Planning programs

en
ni
U

m
ge

ss
Question

se
id
br

As
3 Think about games you play online. How is randomness
am

y
used in the game?

op
&
-C

C
es
Activity 4

w
y

Pr
op

ie
You will need: a desktop computer, laptop or tablet, access to Scratch and

ev
ity
C

source file 1.14_Scratch_random_game

R
rs
w
ie

ve

t-
Marcus wants to create a program that randomly says either ‘true’ or ‘false’
ev

en
ni

after his friends have made a statement. He has planned how it should look
R

m
and he knows that there is a random block in Scratch.
ge

ss
At the moment the program only randomly

se
id

says 1 or 2 instead of ‘true’ or ‘false’.


br

As
am

Work with a partner. Open source file 1.14 and change the code

y
op
&
so that the program says the words ‘true’ or ‘false’ randomly.
-C

C
es

Share your solution with the rest of the class.

w
y

Pr
op

Discuss the different methods people used to add randomness

ie
ev
to a program. Which solutions were the most effective? Why?
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

Try using a
ge

ss

conditional block to
se
id

check if the random number


br

As

inside the variable is 1 or 2, and


am

then change the variable to be


y
op
&
-C

the word ‘true’ or ‘false’


s

C
es

instead of 1 or 2.
w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

59
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Programming task 1

se
id
br

As
am
You will need: a desktop computer, laptop or tablet, access to Scratch,

y
op
&
source file 1.15_rock_paper_scissors_game, a pen and paper
-C

C
es
You now need to program this part of Sofia’s project plan:

w
y

Pr
op

ie
• Program the computer to make a random choice of rock, paper

ev
ity
C

or scissors and then store that choice.

R
rs
w
ie

ve

t-
Part A
ev

en
ni

Sofia has tried to create a program that will choose either rock, paper or
R

m
scissors. With a partner, predict what her code will do and discuss why
ge

ss
her code may not work as she expects.

se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

60
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.4 Planning programs

en
ni
U

m
ge

ss
Continued

se
id
br

As
Open source file 1.15_rock_paper_scissors_game. Run the code to test
am

y
whether your predictions were correct.

op
&
-C

C
Now, run the code 10 times and note down the computer’s choice each time.

es

w
y

Did you see any blank results? Discuss with your partner why there

Pr
op

ie
might be blank results.

ev
ity
C

R
rs
w

Part B
ie

ve

t-
You want the
ev

Sofia’s code contains three

en
ni

program to choose the


R

conditional IF statements.
U

m
When the code is run, it picks a random number once and
ge

ss
new random number each time. then store that number

se
id

somehow . . .
br

As
With a partner, modify Sofia’s
am

y
code to see if you can fix this bug.

op
&
-C

C
How are we doing?
es

w
y

Swap your program with another pair. Test it to see if the program randomly
Pr
op

ie
says ‘rock’, ‘paper’ or ‘scissors’. Test it at least 10 times to check.

ev
ity
C

Feed back to the other pair.


R
rs
w
ie

ve

t-
ev

en
ni
R

Choice combinations
m
ge

ss
se
id

In Programming task 1, you followed Sofia’s project plan to program the


br

As

computer’s random choice.


am

You now need to look at the next parts of Sofia’s project plan:
y
op
&
-C

• Allow the user to input their choice of rock,


C
es

paper or scissors and store that choice.


y

Pr
op

ie

• Get the program to work out who has won a


ev
ity
C

round – the user or the computer.


-R
rs
w
ie

There are many possible combinations of the user’s choice and the
ve

t
ev

computer’s choice. As part of the development process, it is important


en
ni
R

to think carefully about how your program will decide who has won
m

a round. To do this, you need to consider all possible combinations


ge

ss

of answers.
se
id
br

As
am

61
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Unplugged activity 5

se
id
br

As
You will need: a pen and paper
am

y
op
&
For each round of the rock, paper, scissors game,
-C

C
there will be a user choice, a computer

es

w
Is there a way
y

choice and then a result (who has won

Pr
op

ie
the round, or if it was a draw). you can do this to

ev
ity
C

Copy the table below to help make sure that you have

R
rs
w

you write down all the combinations thought of all the


ie

ve

t-
possibilities?
ev

that you can think of, and the results.

en
ni
R

m
User choice Computer choice Result
ge

ss
se
id

Rock Paper Computer wins


br

As
am

Rock

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w

Turning combinations into conditionals


ie

ve

t-
ev

en
ni

In the previous activity you helped Sofia to find all the possible
R

choices for her game. One efficient method to find all the possibilities
ge

ss

is to first find all the combinations for when the user chooses rock.
se
id

There are three possibilities because the computer could also choose
br

As

rock, or paper or scissors. Then if the user chooses paper, there are
am

three more possibilities for the computer’s choice. There are three
y
op
&
-C

more combinations for if the user chooses scissors. This means


s

C
es

there are nine possible combinations in total.


w
y

Pr
op

ie

To turn this into code that a program can understand, you can use
ev
ity
C

conditionals (IF, THEN). As there are nine possible combinations,


-R
rs

you can use nine conditional statements that will check the
w
ie

ve

choices that the computer and the user have made and
t
ev

en
ni

then announce the result.


R

m
ge

ss
se
id
br

As
am

62
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.4 Planning programs

en
ni
U

m
ge

ss
For example:

se
id
br

As
1 IF the user selects rock THEN
am

y
op
&
2 IF the computer selects rock THEN
-C

C
3 the result is a draw

es

w
y

Pr
4 IF the computer selects paper THEN
op

ie
ev
ity
C

5 the result is the computer wins . . .

R
rs
w
ie

ve

t-
ev

en
Activity 6
ni
R

m
You will need: a desktop computer, laptop or tablet and source file
ge

ss
1.16_conditional_algorithm_template

se
id
br

As
Write an algorithm in words using conditionals, to show all the possible
am

y
combinations of user and computer choices.

op
&
-C

C
Use source file 1.16_conditional_algorithm_template to help you.
es

w
y

Pr
op

ie
ev
ity
C

User’s choice
R
rs
w
ie

ve

t-
So far you have created the part of your program that gets the computer
ev

en
ni

to make a random choice of rock, paper or scissors. The next step is


R

to create the part of your program that allows the user to make their
ge

ss

choice and then works out who has won.


se
id

The user needs to input their choice of rock, paper or scissors. One way
br

As
am

to do this is using the ‘ask’ block. This will store the user’s response y
op
&

in the ‘answer’ and then the program can compare this with the
-C

computer’s choice.
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

63
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Activity 7

se
id
br

As
You will need: a desktop computer, laptop or tablet, access to Scratch and
am

y
source file 1.17_Sofia_rock_paper_scissors

op
&
-C

C
es
Sofia has started to create the rock, paper, scissors program but it

w
y

is incomplete. She is trying to complete this part of her project plan:

Pr
op

ie
• Allow the user to input their choice of rock, paper or

ev
ity
C

R
scissors and store that choice.
rs
w
ie

ve

t-
Open source file 1.17_Sofia_rock_paper_scissors. You can see that Sofia
ev

en
ni

has decided to use two sub-routines that are called from the main code
R

m
on the left.
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&

Work with a partner and discuss what the code does.


-C

Then label the sub-routines with what they do, using comments.
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

64
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.4 Planning programs

en
ni
U

m
ge

ss
So far, the program generates a random choice for the computer, it

se
id
asks the user for their choice and then it counts down from 3 and

br

As
displays both choices at once. But that is all it does. It doesn’t yet
am

y
know which player has won the round or whether it’s a draw.

op
&
-C

C
es
Programming task 2

w
y

Pr
op

ie
ev
ity
You will need: a desktop computer, laptop or tablet, access to Scratch,
C

R
rs
source file 1.17_Sofia_rock_paper_scissors, your completed table from
w
ie

ve

t-
Unplugged activity 5
ev

en
ni
R

m
Part A
ge

ss
You now need to complete this part of Sofia’s project plan:

se
id
br

• Get the program to work out who has won a round:


As
am

y
the user or the computer.

op
&
-C

Use your table from Unplugged activity 5 to


s

C
You could use the
es

help you. Modify Sofia’s program so that it can

w
y

‘Duplicate’ feature to save


Pr

decide who has won the round and then


op

ie
you having to put together

ev
announce the result.
ity
C

lots of the same blocks.


R
rs
w

Focus on getting the program to work only


Try right-clicking a section
ie

ve

t-
when the user selects ‘rock’ first.
of code and selecting
ev

en
ni

Test your program: ‘Duplicate’.


R

• What happens when you enter the choice ‘rock’?


ge

ss
se

• What happens if you enter something else as your choice?


id
br

As

Part B
am

y
op
&

Now your program can work out the result if


-C

the user enters rock, but not if they enter


es

w
y

anything else. Continue modifying your code


Pr
op

ie

so that it will work if the user selects


ev
ity
C

‘paper’ or ‘scissors’.
-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

65
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Programming task 3

se
id
br

As
am
You will need: a desktop computer, laptop or tablet, access to Scratch,

y
op
&
your project plan from Unplugged activity 1 and your interface
-C

C
prototype from Activity 3

es

w
y

Pr
op

ie
Now you have all the programming parts ready for your game of rock, paper, scissors.

ev
ity
C

Use your project plan and interface prototype to start to develop your game.

R
rs
w

Are there any extra features you might add to your game? If you decide to
ie

ve

t-
make changes to your plan, that’s OK. Programmers do this all the time.
ev

en
ni
R

m
How am I doing?
ge

ss
Swap your program with a partner. Run your partner’s program and

se
id

then compare your programs.


br

• How are your programs similar?


As
am

y
op
&
• How are they different?
-C

C
• Explain to your partner how the project plan helped you to develop
es

w
your program.
y

Pr
op

ie
• Tell your partner what you would do differently if you were to start

ev
ity
C

again from the beginning.

R
rs
w
ie

ve

t-
ev

en
ni
R

Some programmers like to write really detailed plans that they stick to
ge

ss

when programming. Others like to write less detailed plans and come
se
id

up with new ideas while they program. Discuss with your partner how
br

As

you prefer to plan when programming and why.


am

y
op
&
-C

C
es

w
y

Look what I can do!


Pr
op

ie
ev

I understand how a clear plan can improve a program.


ity
C

-R
rs
w

I can describe the role of prototypes when designing a program.


ie

ve

I can create a plan for a programming project.


ev

en
ni
R

I can develop an interface for a program.


m
ge

ss

I can use my plan to develop a rock, paper, scissors game in Scratch.


se
id
br

As
am

66
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.5 Evaluating and testing programs

en
ni
U

m
ge

ss
1.5 Evaluating and testing programs

se
id
br

As
am

y
We are going to:

op
&
-C

C
• think of criteria for a program and use them to evaluate a program

es

w
y

Pr
op

• test a program using a range of data.

ie
ev
ity
C

evaluation systematic

R
rs
w

success criteria user experience


ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

Getting started
-R
rs
w

What do you already know?


ie

ve

t
ev

en

• You know how to test different parts of a program and debug errors.
ni
R

• You know how to evaluate different parts of a program.


ge

ss
se
id
br

As
am

67
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Sofia is trying to reduce how much paper and ink she uses. She decides

op
&
-C

to send Marcus an online birthday card that she created using Scratch.

C
es
Have a look at the code for her project.

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

With a partner, evaluate Sofia’s program. Think about which parts you like and

R
rs
w

which parts could be improved. Share your ideas with the rest of the class.
ie

ve

t-
ev

en
ni
R

m
ge

ss

Evaluation
se
id
br

Evaluation means thinking about what we like or


As
am

dislike about something and how it can be improved. y


op
&
-C

Evaluation is an important skill in life and something Think of


s

C
es

that often takes place in your classroom or in activities a time when you
w
y

Pr

outside of school, such as hobbies. You might create


op

ie

evaluated something that


a work of art and then evaluate what you did well
ev
ity
C

you created. How did


and what you could have done better.
-R
rs
w

it help?
ie

ve

Evaluation is one of the ways we keep learning and


t
ev

en
ni

keep improving.
R

m
ge

ss
se
id
br

As
am

68
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.5 Evaluating and testing programs

en
ni
U

m
ge

ss
Programming task 1

se
id
br

As
am
You will need: a desktop computer, laptop or tablet, access to Scratch and

y
op
&
source file 1.18_Marcus_polar_bear
-C

C
es
Open source file 1.18_Marcus_polar_bear and run Marcus’s animation. Work with a

w
y

Pr
op

ie
partner to discuss what you like about the program and how it could be improved.

ev
ity
C

Modify the project with your partner to make the improvements you have suggested.

R
rs
w
ie

ve

t-
ev

en
ni

Success criteria
R

m
ge

ss
To make evaluations more effective, we need success criteria. Success criteria can be

se
id

used to tell us what a program should do in order to be successful. Different programs


br

As
have different success criteria. Having a defined set of success criteria can help to focus
am

y
our evaluations and make it easier to see what we could do to improve a project.

op
&
-C

C
es

Unplugged activity 1

w
y

Pr
op

ie
Marcus asked both Arun and Sofia to evaluate the polar bear animation.

ev
ity
C

The animation should tell a story that makes sense. Arun did not receive

R
rs
w

any success criteria but Sofia received the following criteria:


ie

ve

t-
• The sizes of the sprites should be appropriate.
ev

en
ni

• The text should appear for long enough for a user to read.
R

• The animation should make sense.


ge

ss
se

• The program should use


id

The size of the sprites could


br

‘repeat’ loops.
As

be improved by making the polar bear


am

With a partner, have a look at the bigger and the llama smaller. The text didn’t
y
op
&
-C

two evaluations below. appear on the screen for long enough – perhaps
s

C
es

Discuss which evaluation you it could have been there for three or four seconds
w
y

Pr

think is more effective and why.


op

instead of one. I liked how it used a repeat


ie
ev
ity

loop to do a backflip.
C

-R
rs
w
ie

ve

I really liked Marcus’s


t
ev

en
ni

animation. I liked that the


R

polar bear did a backflip,


ge

ss

but it was a bit small.


se
id
br

As
am

y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge
Defining success criteria

ss
se
id
br
When defining criteria for a successful project, you should

As
am
think about what the project needs to do.

y
op
&
-C

In Programming task 1, the polar bear animation was supposed to tell

C
es
a story that made sense. It needed characters to tell the story using

w
y

Pr
text in speech bubbles.
op

ie
ev
ity
C

Your teachers may define criteria for your work. For example,

R
rs
in an art project, recreate a piece of art in the style of an
w
ie

ve

t-
established artist. In a science experiment, you might
ev

en
be successful if you explain how it was a fair test.
ni
R

m
In the next activity, you are going to work together to
ge

ss
define criteria for a successful rock, paper, scissors game.

se
id
br

User experience As
am

y
op
&
-C

Whenever you use a computer program, whether


s

C
es

you are playing an online game or typing in a

w
y

Pr
op

document, everything you see and hear in the

ie
ev
program is part of the user experience. This is
ity
C

R
the experience you have (how you feel) as a user
rs
w
ie

ve

of that program. It does not include the actual


t-
ev

en

programming code because users almost never


ni
R

see the code.


m
ge

ss

Programmers think very carefully about user


se
id

experience. In a word-processing program like


br

As

Word or Google Docs, developers have thought


am

carefully about where the menus will go, how the y


op
&

page will look and which buttons should be on display.


-C

C
es

w
y

Did you know?


Pr
op

ie
ev

The user experience of computer programs


ity
C

(sometimes shortened to UX) has changed


-R
rs
w

a lot over time. If you have ever played


ie

ve

t
ev

old games or seen videos of old software,


en
ni
R

you will know how much user experience


U

has improved.
ge

ss
se
id
br

As
am

70
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.5 Evaluating and testing programs

en
ni
U

m
ge

ss
Questions

se
id
br

As
1 Have you used any programs where the user experience
am

y
was really good? What were they?

op
&
-C

2 Have you used any programs where the user experience

C
es
was really bad? What were they?

w
y

Pr
op

ie
3 What was it about these programs that made it a good

ev
ity
C

or bad user experience?

R
rs
w
ie

ve

t-
Unplugged activity 2
ev

en
ni
R

You will need: a pen and paper

m
ge

ss
In the previous topic, you created a rock, paper,

se
id

scissors game in Scratch.


br

As
am

Look back to Topic 1.4 and read the description

y
op
&
of what the game needs to do. Define criteria
-C

C
you could use to evaluate the user experience
es

w
of these games. What would a successful
y

Pr
op

ie
game include?

ev
ity
C

Discuss your ideas in small groups of four and

R
rs
w

decide on a set of success criteria that you can


ie

ve

t-
use to evaluate your games. Write your group
ev

en
ni

ideas down and then share them with the


R

rest of the class. Decide as a class what the


ge

ss

success criteria should be.


se
id
br

As

How are we doing?


am

y
op
&

Swap your rock, paper, scissors game with a partner and use the criteria
-C

you decided on as a class to evaluate each other’s games. Tell your partner
es

what they have done well and how they could improve the user experience
y

Pr
op

ie

of their game.
ev
ity
C

Listen to your partner’s evaluation of your game. If you agree with them,
-R
rs
w

make the changes to your project. You could even add a note in the
ie

ve

Scratch project page to say this is now version 2, 3 or 4.


t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

71
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Improving the code

se
id
br

As
You may have noticed that sometimes an
am

y
op
&
update becomes available for you to install
-C

s
on your device. In order to keep your device

C
es
running well, you need to install the latest

w
y

Pr
op

ie
software update.

ev
ity
C

The reason you sometimes need to update

R
rs
w

digital devices and software is because


ie

ve

t-
there are teams of developers constantly trying to
ev

Stay safe!

en
ni

improve the code for the programs you use. Developers


R

m
may need to run an update to fix errors in the code, or It is always a good
ge

ss
they may think of ways to improve the user experience. idea to install

se
id

They do this by creating updates to the programs, software updates


br

As
which you need to accept and apply before you because they often
am

y
can see the improvements. contain security

op
&
improvements that
-C

C
es

Don’t feel bad if can keep your device

w
y

safe and secure.


Pr

a classmate finds things


op

ie
to improve in your programs.

ev
ity
C

The biggest tech companies in the


R
rs
w
ie

world find ways to improve


ve

t-
ev

en

their programs too!


ni
R

m
ge

ss
se
id
br

As

Testing programs
am

y
op
&
-C

When a software developer wants


s

C
es

to release a new program, they will


w
y

Pr
op

test that program before they let


ie
ev

members of the public use it.


ity
C

-R
rs
w

However, even after a program has


ie

ve

been released, the developers might


t
ev

en
ni

still find errors or improvements to


R

make. This is why you sometimes


ge

ss

get software updates.


se
id
br

As
am

72
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.5 Evaluating and testing programs

en
ni
U

m
ge

ss
Did you know?

se
id
Sometimes programs are released that haven’t

br

As
been properly tested. One famous online game
am

y
op
&
was released before it was ready and it contained
-C

s
lots of bugs in the code. Users from around the

C
es
world complained and it got such bad reviews that

w
y

Pr
op

ie
the game company had to give everyone their

ev
ity
C

money back. The company lost millions of dollars.

R
rs
w
ie

ve

t-
ev

Just as developers test their programs before releasing

en
ni

them to the general public, you should thoroughly test


R

m
your rock, paper, scissors game before sharing it
ge

ss
on Scratch. If it works successfully every time,

se
id

then you can be more confident that there


br

are no bugs in your code. If you do find


As
am

y
op
&
any bugs, then you can go back to your
-C

code and correct the errors.

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

Programming task 2
ge

ss
se
id

You will need: a desktop computer, laptop or tablet, access to


br

As

Scratch and your rock, paper, scissors game from Topic 1.4 or
am

source file 1.19_rock_paper_scissors_game


y
op
&
-C

C
es

You now need to test the program using a range of data.


w
y

Pr
op

ie

1 What would happen if the user entered something you didn’t expect,
ev
ity
C

for example ‘bananas’? Test your program to see what happens.


-R
rs
w

2 Now you are going to try other data types. Try entering a number and write
ie

ve

down what happens. Then enter a single letter and note down what happens.
t
ev

en
ni

3 How should your program react if the user enters unexpected data?
R

Discuss this question with a partner and share your solutions with the class.
ge

ss
se
id
br

As
am

73
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Systematic testing

se
id
br
Systematic testing means thinking

As
am
carefully about the way you will test

y
op
&
something instead of just testing
-C

C
it randomly. Imagine that your

es

w
friend had developed a calculator
y

Pr
op

ie
app in Scratch and wanted you to

ev
ity
C

test it for them. One way to test it

R
rs
w

systematically would be to start by


ie

ve

t-
inputting some addition calculations
ev

en
ni

and checking that the answers


R

m
were accurate. Next you might test
ge

ss
subtraction, then multiplication and

se
id

then division. If all of the answers were accurate, you could be more
br

As
confident that the app was working correctly because there was a
am

y
system to your testing.

op
&
-C

Another important thing to consider when testing a program is the


s

C
es

number of times you run the code. The more times you run your

w
y

Pr

program successfully, the more confident you can be that it will


op

ie
ev
always show the correct result. How many times do you think
ity
C

it would be reasonable to test your code?


R
rs
w
ie

ve

t-
ev

en
ni

I will test my code


R

15 times and if it is correct


ge

ss

every time, I can be very


se
id

confident that my program


br

As
am

has no bugs. y
op
&

Good idea,
-C

Marcus. I am going to test


C
es

my program five times for rock,


w
y

Pr
op

ie

five for paper and five


ev
ity
C

for scissors.
-R
rs
w
ie

ve

I like
t
ev

en
ni

your systematic
R

thinking!
ge

ss
se
id
br

As
am

74
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.5 Evaluating and testing programs

en
ni
U

m
ge

ss
Programming task 3

se
id
br

As
am
You will need: a pen and paper, a desktop computer, laptop or tablet, access to

y
op
&
Scratch and source file 1.20_Marcus_rock_paper_scissors
-C

C
es
Marcus has created a rock, paper, scissors game.

w
y

Pr
op

ie
Open source file 1.20_Marcus_rock_paper_scissors. Work in pairs to test Marcus’s

ev
ity
C

program 15 times. Copy the table below to help you record the results.

R
rs
w

For the first five tests:


ie

ve

t-
ev

en
ni

• input the data ‘rock’


R

m
• record the computer’s choice
ge

ss
• record whether the program announces the result correctly.

se
id

Repeat this five times with ‘paper’, and finally repeat it five times
br

As
am

using ‘scissors’.

y
op
&
-C

Attempt User Computer Who Who Was the

C
es

choice choice should win? did win? program correct?

w
y

Pr
op

ie
1

ev
ity
C

R
rs
w

2
ie

ve

t-
ev

en
ni
R

Maybe one
ge

ss

of you can input the


se
id

choice while the other can


br

As

record the outcomes


am

in the table?
y
Make sure you
op
&
-C

spell the choices


C
es

correctly!
w
y

Pr
op

ie
ev
ity
C

What did you notice when you typed ‘paper’ into Marcus’s game?
-R
rs
w

How might you correct Marcus’s code?


ie

ve

t
ev

en

If you created your own game in Topic 1.4, test your code using the
ni
R

same table to check that your program works correctly.


m
ge

ss
se
id
br

As
am

75
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
The best programmers

se
id
get excited when they find a
br

As
am ‘bug’ in their code because it means

y
op
&
they know it is there, so they can
-C

C
solve the problem and improve

es

w
y

their program.

Pr
op

ie
ev
ity
C

Next time you

R
rs
w
ie

ve
find a mistake in your

t-
ev

en
code (which happens to everyone),
ni
R

see if you can feel positive

m
ge

ss
about it!

se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
Questions
ity
C

R
rs
w
ie

ve

t-
4 How did you test the program in a systematic way?
ev

en
ni

5 If you found any bugs, how did you fix them?


R

6 Would you rather find no bugs in code or lots of bugs?


ge

ss

Why? Discuss your answers with the rest of your class.


se
id
br

As
am

What would you need to consider when testing future programs y


op
&
-C

in this way?
s

C
es

How could systematic thinking be used in other areas of your life?


w
y

Pr
op

ie
ev
ity
C

-R
rs
w

Look what I can do!


ie

ve

t
ev

en
ni

I can define and use criteria to evaluate a program.


R

I can test a program using a range of data.


ge

ss
se
id
br

As
am

76
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.6 Using variables with a physical device

en
ni
U

m
ge

ss
1.6 Using variables with

se
id
br

As
a physical device
am

y
op
&
-C

C
es

w
y

We are going to:

Pr
op

ie
ev
• develop a game for the BBC micro:bit that uses inputs and variables

ity
C

R
rs
w

• develop a game for the micro:bit that generates an output.


ie

ve

t-
ev

en
ni
R

m
ge

function physical programming device

ss
input portable game console

se
id
br

input–process–output (IPO) model process


As
am

output

y
op
&
-C

C
es

w
y

Pr

Getting started
op

ie
ev
ity
C

What do you already know?

R
rs
w

• You know how to use the MakeCode interface to program


ie

ve

t-
a micro:bit.
ev

en
ni
R

• You know how to use a condition to check if a micro:bit has


m
ge

received an input.
ss
se
id

• You know how to describe the input–process–output model.


br

As
am

• You know how to create programs that produce an output y


op
&

from a micro:bit when you use micro:bit inputs.


-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

77
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Play a game of ‘higher or lower’. Your teacher

op
&
-C

will call out a random number between 1 and 9.

C
es
Decide whether the next random number will be

w
y

Pr
higher or lower.
op

ie
ev
ity
If you think the next number will be higher, go
C

R
to one side of the room. If you think the next
rs
w
ie

ve

t-
number will be lower, go to the other side of
ev

en
the room.
ni
R

m
If your guess is correct, you stay in the game
ge

ss
and play again. If your guess is incorrect,

se
id

go back to your seat.


br

The game continues until there is a winner!


As
am

y
op
&
Did you have a strategy for choosing
-C

C
your numbers?
es

w
y

Pr
op

I have a strategy

ie
ev
that I use for ‘higher or
ity
C

R
lower’. If the number is above 5
rs
w
ie

ve

t-
I predict that the next number will
ev

en
ni

be lower. If it is below 5 I predict


R

the next number will


ge

ss

be higher.
se
id
br

As

My strategy
am

is to take it in turns
y
op
&
-C

between guessing higher


s

C
es

and lower.
w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

78
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.6 Using variables with a physical device

en
ni
U

m
ge

ss
Computing devices

se
id
br

As
Computers need an input device so that they can receive information.
am

y
op
&
An input device allows a user to provide input (tell the computer what
-C

s
they want it to do). The input device could be:

C
es

w
y

• a keyboard or a mouse for a laptop computer

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
• a button or touchscreen for a smart watch
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

• a microphone for a voice-controlled computer.

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni

When the computer has received an input, it processes the data


R

according to its programming. To process means to carry out


ge

ss

calculations and instructions. The computer then provides an output


se
id

back to the user. An output is information that the program gives to the
br

As

user. The output could be information displayed on a screen or it could


am

be music that plays through a speaker. y


op
&
-C

C
es

Input Process Output


w
y

Pr
op

ie
ev
ity
C

For example, you might press some buttons on a calculator (input), then
-R
rs
w

the calculator will work out the answer (process) and then it will display
ie

ve

the answer on its screen (output). All of this happens very quickly.
t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

79
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
This is an example of the input–process–output (IPO)

se
id
model. The IPO model is a way of describing how a

br

As
program or system operates: it takes in data,
am

y
works on it, then gives out data.

op
&
-C

C
es
Computer games

w
y

Pr
op

ie
ev
ity
C

Personal computers have been around since the 1970s.

R
rs
w

This photo shows one example of what computers


ie

ve

t-
used to look like.
ev

en
ni

Soon after electronic computers were invented,


R

m
people started using them to program
ge

ss
simple games.

se
id

As computers became more complicated, so did


br

computer games. You may have heard of classic


As
am

y
op
&
computer games such as PacMan, Space Invaders
-C

and Frogger.

C
es

w
y

Pr
op

ie
Did you know?

ev
ity
C

The first ever machine that could be considered a computer


R
rs
w
ie

was designed in 1837 by an English mathematician called


ve

t-
ev

Charles Babbage. He called his machine the Analytical Engine.


en
ni
R

Ada Lovelace, daughter of the poet Lord Byron, was one of the
m

first people to ‘program’ this ‘computer’ and therefore she was


ge

ss

one of the first ever computer programmers.


se
id
br

As
am

All of these games had to be quite simple.


y
op
&
-C

They looked very two-dimensional (2D) and they


s

C
es

didn’t use many colours, unlike many of the more


w
y

Pr
op

advanced computer games you might play today.


ie
ev

This is because the computers at that time were not


ity
C

as powerful as they are now.


-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

80
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.6 Using variables with a physical device

en
ni
U

m
ge

ss
As technology improved, computer scientists developed the

se
id
portable game console – a small, handheld computer that

br

As
didn’t need to be plugged in like other computers did.
am

y
This meant that for the first time, people could take their

op
&
game consoles wherever they liked and play games
-C

C
outside their home.

es

w
y

Pr
Portable game consoles normally used buttons as their
op

ie
ev
input devices and had a small screen to display the output

ity
C

to the user.

R
rs
w
ie

ve

t-
ev

en
ni

Physical programming devices


R

m
ge

ss
A physical programming device is a computing device that

se
id

you can program.


br

As
The micro:bit is an example of a physical programming device.
am

y
op
&
It is a small, programmable device that has a variety of inputs (such as
-C

buttons) and outputs (such as the LED display). You can write code on

C
es

your computer using the MakeCode interface and then download the

w
y

Pr
op

ie
program to your micro:bit.

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

81
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Just as computer programmers develop computer games for consoles,

se
id
you are going to create code for a game that you will download to

br

As
a micro:bit. It will use buttons as its input devices and the screen as
am

y
its output device. Once your game is downloaded onto the micro:bit

op
&
you can take your game out into the playground, like your very own
-C

C
portable game console!

es

w
y

Pr
Think of a game you have played before. Whole teams of developers
op

ie
ev
would have planned exactly how that game should start, which

ity
C

buttons you should press and other details about how the game looks.

R
rs
w

They would have spent months developing, testing and updating the
ie

ve

t-
ev

code before the game was ready for users to play.

en
ni
R

m
In this topic, you are going to work like a game developer to plan and
ge

ss
program a micro:bit version of the game ‘higher or lower’.

se
id
br

As
Unplugged activity 1
am

y
op
&
Think about when you have used a micro:bit in the past.
-C

C
Discuss with a partner how you might program a micro:bit to play
es

w
y

the game ‘higher or lower’. How might the user find out the first number?
Pr
op

ie
How might they tell the device they think the next number will be

ev
ity
C

higher or lower?

R
rs
w

Share your ideas with the rest of the class.


ie

ve

t-
ev

en
ni
R

Stay safe!
ge

ss

When you use a physical computing device like the


se
id
br

micro:bit, some of the electrical components are on the


As
am

outside of the device. It is best to handle the device by y


op
&

its edges when the power is running.


-C

C
es

w
y

Pr
op

ie
ev

Since the micro:bit is a small and simple computer, it uses the


ity
C

input–process–output (IPO) model.


-R
rs
w
ie

ve

The micro:bit has a variety of input devices, including buttons, a


t
ev

en
ni

microphone and other sensors. (Older versions of a micro:bit may have


R

different input or output devices.) This means your user could input data
ge

ss

(tell the device what to do) by shaking it, pressing a button or tilting it.
se
id
br

As
am

82
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.6 Using variables with a physical device

en
ni
U

m
ge

ss
The program that you create in MakeCode and then download to

se
id
the micro:bit allows the device to process the input. For the game of

br

As
‘higher or lower’, the process will involve working out if the number is
am

y
higher or lower and what to do if the user is correct or incorrect.

op
&
-C

The micro:bit has a variety of output devices, including a tiny speaker

C
es
and a screen made up of LEDs. If the user guesses correctly, you could

w
y

Pr
program the speaker to play a sound or you could use the screen to
op

ie
ev
display a simple message.

ity
C

R
rs
w

LED lights microphone


ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

speaker

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w

Front of micro:bit Back of micro:bit


ie

ve

t-
ev

en
ni

Programming task 1
R

m
ge

ss

You will need: a desktop computer, laptop or tablet, access to Scratch


se
id
br

and source file 1.21_higher_or_lower


As
am

y
op
&

Part A
-C

C
es

Marcus and Sofia have worked together to develop a ‘higher or


w
y

Pr
op

ie

lower’ game using Scratch. In their game, the user inputs their
ev
ity

choice of higher or lower by clicking on the higher or lower sprite.


C

-R

They use sub-routines: one for ‘Correct guess’ and one for
rs
w
ie

ve

‘Incorrect guess’. With a partner, look at their code and


t
ev

en

predict what will happen when this code runs.


ni
R

m
ge

ss
se
id
br

As
am

83
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Continued

se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

Part B

w
y

Pr
op

ie
Open source file 1.21_higher_or_lower and take it in turns with

ev
ity
C

a partner to play this version of ‘higher or lower’.

R
rs
w

Were your predictions correct?


ie

ve

t-
ev

en

Part C
ni
R

Look at the code. Choose one block of code and discuss what it
ge

ss

does with your partner.


se
id

Look through all of the other blocks of code in the program.


br

As

Remember to click on all the sprites and the backdrop too.


am

y
op
&

Add comments to each of the blocks of


-C

code describing what they do. Include as


es

Who will get the


w
y

much information as possible.


Pr

most correct guesses


op

ie
ev

With the rest of your class, discuss any in a row?


ity
C

of the blocks that you weren’t sure about,


-R
rs
w

or that you found difficult to describe.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

84
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.6 Using variables with a physical device

en
ni
U

m
ge

ss
Adapting the game for micro:bit

se
id
br

As
The game in Programming task 1 was developed for Scratch
am

y
but you are going to develop your game for the micro:bit.

op
&
-C

C
es
Unplugged activity 2

w
y

Pr
op

ie
You will need: a pen and paper

ev
ity
C

R
rs
w

Discuss with your partner which parts of the Scratch game might be
ie

ve

t-
similar in your micro:bit game and which parts might be different.
ev

en
ni
R

m
I know it won’t
ge

ss
be possible to have

se
id

dinosaur sprites and costumes


br

As
in the micro:bit game because the
am

y
op
&
micro:bit screen is different
-C

C
from Scratch.
es

The micro:bit

w
y

Pr
op

ie
game needs to have

ev
ity
C

random numbers like the


R
rs
w

As a class, define some criteria that your Scratch game.


ie

ve

t-
micro:bit game of ‘higher or lower’ should include.
ev

en
ni

Write down the criteria that you think of as a class,


R

as you will need to use these when creating your code for the micro:bit.
ge

ss
se
id
br

As

Before starting a complex programming task, it is important to


am

understand what you want your program to do at different points,


y
op
&
-C

for example when a user starts the program or provides an input.


s

C
es

One way to do this is to act out your code. This means going through
w
y

Pr
op

ie

the program step by step and ‘performing’ or ‘telling the story’ of what
ev
ity
C

should be happening. If there are points in your program that you


-R
rs

don’t fully understand, this gives you a chance to discuss what the
w
ie

ve

solution might be before you begin programming.


t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

85
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Unplugged activity 3

se
id
br

As
You will need: Resource sheet 1.16, three containers, a large,
am

y
clear space on a table

op
&
-C

C
Act out your code.

es

w
y

Pr
Cut out the number cards on Resource sheet 1.16.
op

ie
ev
ity
C

Use the number cards 1 to 9 to represent the random numbers and use

R
rs
three spaces or containers on your table to represent the variables.
w
ie

ve

t-
Tell the story of how your code will run during the game.
ev

en
ni

Use these sentence starters if you need them:


R

m
• When the user begins the program . . .
ge

ss
se
id

• The score variable will be set to . . .


br

As
• The Random number variable will be set to . . .
am

y
op
&
• The Next random number variable will be set to . . .
-C

C
• The user will be shown . . .
es

w
y

Pr

• If they think the next number will be higher they will . . .


op

ie
ev
ity
C

• If they think the next number will be lower they will . . .

R
rs
w

• If they input their choice as lower, the program will . . .


ie

ve

t-
ev

• If they input their choice as higher, the program will . . .


en
ni
R

• If they were correct, the program will . . .


ge

ss

• If they were incorrect, the program will . . .


se
id
br

As

How am I doing?
am

y
op
&

Give yourself a mark from 1 to 5 for the following statements.


-C

1 is ‘not confident’ and 5 is ‘very confident’.


C
es

w
y

• I understand how I am going to use variables in my program.


Pr
op

ie

• I know how the user will choose higher or lower.


ev
ity
C

-R
rs

• I know what will happen if the user guesses correctly.


w
ie

ve

• I know what will happen if the user guesses incorrectly.


t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

86
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.6 Using variables with a physical device

en
ni
U

m
ge

ss
Using sub-routines in MakeCode

se
id
br

As
In Scratch, you can create sub-routines using the ‘broadcast’ block.
am

y
In the Scratch ‘higher or lower’ game, the ‘Incorrect guess’ sub-routine

op
&
-C

runs when a user makes an incorrect guess, and the ‘broadcast’

C
es
block is used.

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
There is no ‘broadcast’ block in the MakeCode interface . Instead, you
ni
R

need to use a function. A function is a separate section of code that runs

m
ge

when it is called from the main code. It may be called several times when

ss
a program runs. This is very similar to how a ‘broadcast’ block works.

se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

Programmers use functions in their code to:


es

w
y

Pr

• make the code clearer to read


op

ie
ev
ity
C

• reduce the amount of repetition (so the same blocks of code aren’t
-R
rs
w

repeated again and again). This makes programs shorter and


ie

ve

more efficient
t
ev

en
ni

• make it easier to fix bugs – a function only needs to be checked


R

and corrected once, instead of having to correct the same error lots
ge

ss

of times where code is repeated.


se
id
br

As
am

87
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
If Sofia and Marcus’s Scratch game didn’t include sub-routines,

se
id
it would be one long stack of code with lots of repeated blocks!

br

As
am
Did you know?

y
op
&
-C

You can create your own functions in Scratch using the

C
es
‘Make a Block’ button.

w
y

Pr
op

ie
ev
ity
C

R
Programming task 2
rs
w
ie

ve

t-
ev

en
ni

You will need: a desktop computer, laptop or tablet, access to


R

m
the internet and source file 1.22_function_example
ge

ss
se
id

Part A
br

As
am

Look at the code below. Discuss with your partner what you

y
op
&
think it does. Try to include the words ‘function’, ‘sub-routine’
-C

C
and ‘broadcast’ in your discussion.
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni

You can use the


R

simulator on the screen to


ge

ss

test this code for now. You can


se
id

download your code to a


br

As

real micro:bit later.


am

y
op
&
-C

C
es

w
y

Pr
op

ie

Go to the MakeCode website, click ‘Import’ and open source file


ev
ity
C

1.22_function_example. Run it using the micro:bit simulator on


-R
rs
w

the left side of the screen.


ie

ve

1 What happens when you click button A on the simulator?


t
ev

en
ni

2 What happens when you click button B?


R

m
ge

3 How can you reset the program?


ss
se
id
br

As
am

88
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.6 Using variables with a physical device

en
ni
U

m
ge

ss
Continued

se
id
br

As
Part B am

y
op
&
Click the ‘Edit’ button at the top of the screen to modify the program.
-C

C
es
Add another function that will do something different when the user

w
y

Pr
presses button B.
op

ie
ev
ity
C

Under ‘Advanced’, click ‘Functions’ and then ‘Make a Function . . .’.

R
rs
w

Give your function a name, tell the program what it should do when
ie

ve

t-
it is called, then program it to be called when button B is pressed.
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

Use the simulator to test your program. When you are happy with your program,
ge

ss

download it onto a micro:bit and test it.


se
id
br

As

How are we doing?


am

Swap your program with a partner and test each other’s programs.
y
op
&
-C

Check the following:


s

C
es

• The program has a function for button B.


w
y

Pr
op

ie

• The function is called when button B is pressed.


ev
ity
C

• The program works on the micro:bit.


-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

89
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Planning your game

se
id
br

As
Now that you understand how functions work, it’s time to program
am

y
your ‘higher or lower’ game for the micro:bit. Before you begin, it is a

op
&
-C

good idea to decompose the project into smaller parts. Programmers

C
es
decompose complex projects and then decide who will work on the

w
y

Pr
different parts.
op

ie
ev
ity
C

R
rs
w

My first task is to
ie

ve

t-
get the micro:bit to show
ev

en
ni

a random number when the


R

m
program starts. I will focus on
ge

ss
that first and then move

se
id

onto the next task.


br

As
am

y
op
&
Let’s get
-C

C
coding!
es

w
y

Pr
op

ie
ev
ity
C

R
Programming task 3
rs
w
ie

ve

t-
ev

en
ni

You will need: a desktop computer, laptop or tablet, access to


R

the internet, your list of criteria from Unplugged activity 2 and


ge

ss

source file 1.23_higher_or_lower


se
id
br

Open source file 1.23_higher_or_lower. In this project, one of the


As
am

functions and some of the variables have already been created, but y
op
&

others still need to be created. Most of the functions are not complete so
-C

the program is not finished. Click the ‘Edit Code’ button to work on this
es

w
y

project and develop your own ‘higher or lower’ game for the micro:bit.
Pr
op

ie
ev
ity
C

How am I doing?
-R
rs
w

Look at the criteria you thought of as a class in Unplugged activity 2.


ie

ve

Does your game meet all of the criteria?


t
ev

en
ni

If your game doesn’t meet all the criteria, what else do you need to do?
R

m
ge

ss
se
id
br

As
am

90
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.6 Using variables with a physical device

en
ni
U

m
ge

ss
Continued

se
id
br

As
If your project does meet all the criteria, how could you extend your game?
am

y
op
&
-C

C
es
Does your project

w
y

Pr
say the game is over if the
op

ie
next random number is the same

ev
ity
C

as the current number? Could

R
rs
w
ie

this be changed?
ve

t-
ev

en
ni
R

m
ge

ss
Is it possible

se
for there to be a
id
br

top score?
As
am

y
op
&
-C

C
es

w
Activity 4
y

Pr
op

ie
ev
ity
C

You will need: a desktop computer or laptop, a micro:bit, a mini USB cable and

R
rs
w

access to the MakeCode website; or a tablet, a micro:bit, a battery pack and


ie

ve

t-
access to the MakeCode app, your ‘higher or lower’ game from Programming
ev

en
ni

task 3 and a cable to connect the micro:bit to the computer


R

m
ge

ss

Once your game is working, download


se

the program onto your micro:bit. Attach a


id
br

battery pack to your micro:bit so that you


As
am

can take your game around with you. y


op
&
-C

Take your higher or lower game with you at


s

C
es

break time and let other learners play your


w
y

Pr

game. Make sure you ask your users for


op

ie

feedback after they have played your game.


ev
ity
C

-R
rs

• What did users like about your game?


w
ie

ve

• What did users think could be improved?


t
ev

en
ni

• Share your feedback with the rest of


R

the class.
ge

ss
se
id
br

As
am

91
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
se
id
You have developed programs in MakeCode for the micro:bit and in

br

As
Scratch. Which coding environment do you prefer to use and why?
am

y
op
&
Discuss your answer with a partner and then share your ideas with
-C

C
the rest of your class.

es

w
y

Pr
op

ie
ev
ity
C

R
rs
w

Did you know?


ie

ve

t-
Many other games can be programmed for the micro:bit.
ev

en
ni

The MakeCode website contains lots of tutorials that show


R

m
you how to program different types of games.
ge

ss
se
id
br

As
am

Look what I can do!

y
op
&
-C

I can develop a ‘higher or lower’ game for the micro:bit that uses
s

C
es

inputs and variables.

w
y

Pr
op

ie
I can develop a game for the micro:bit that generates an output.

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

92
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1.6 Using variables with a physical device

en
ni
U

m
ge

ss
Project

se
id
br

As
Create a Scratch quiz
am

y
op
With a partner, you are going to create a quiz in Scratch.

&
-C

Using what you have learnt throughout this unit, complete

C
es
the following tasks.

w
y

Pr
op

ie
• Write a list of success criteria for your program.

ev
ity
C

• Draw a flowchart algorithm for the program.

R
rs
w
ie

ve

t-
• Create a project plan for the program.
ev

en
ni

• Create a prototype of the program.


R

m
• Develop the program.
ge

ss
se
• Test and evaluate the program.
id
br

As
Here are some ideas for what you could include in your quiz:
am

y
op
&
• a score variable
-C

C
• different levels with different backgrounds
es

w
y

Pr

• questions that become more difficult as you progress through


op

ie
the different levels

ev
ity
C

R
rs
w

• different reactions when the user gets a question correct or incorrect


ie

ve

t-
• sprite animations
ev

en
ni
R

• a timer or countdown for answers.


U

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

93
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
1 Computational thinking and programming

en
ni
U

m
ge

ss
Check your progress

se
id
br
1 In a flowchart, what shape are decisions?

As
am
(Hint: They usually have a ‘Yes’ and ‘No’ arrow

y
op
&
coming from them.)
-C

C
es
2 What three data types did you explore earlier in the unit?

w
y

Pr
op

ie
3 In Scratch, which block would you use if you wanted to include

ev
ity
a conditional statement in your program?
C

R
rs
w

4 A variable in Scratch contains information that always stays the


ie

ve

t-
same. Explain whether you agree or disagree with this statement
ev

en
ni

and give an example.


R

m
5 Explain what the green ‘join’ block does in Scratch.
ge

ss
se
In Scratch, event blocks are used to start a program.
id

6
br

For example, ‘When green flag clicked’ is an event block.


As
am

Write down as many other event blocks as you can remember.

y
op
&
-C

7 Explain what a sub-routine is and why it can be useful


s

C
es

in programming.

w
y

Pr
op

ie
8 How might a sub-routine be used in a quiz?

ev
ity
C

9 What does IPO stand for?

R
rs
w

10 Give some examples of inputs and outputs on a micro:bit.


ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

94
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
Managing data

U
2

m
ge

ss
se
id
br

As
am
2.1 Capturing data

y
op
&
-C

C
es

w
y

We are going to:

Pr
op

ie
ev
ity
C

• identify the different computing tools that you can use in

R
rs
w

a statistical investigation
ie

ve

t-
• explore how to plan a statistical investigation
ev

en
ni
R

• explore how to collect continuous data

m
ge

ss
• design an appropriate form to collect continuous data.

se
id
br

As
am

y
op
&
collaborate question type
-C

C
continuous data statistical investigation
es

w
criteria validation rules
y

Pr
op

ie
questionnaire

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

Getting started
m
ge

ss

What do you already know?


se
id

• What a statistical investigation is.


br

As
am

• The range of tools that can be used in a statistical investigation, including: y


op
&
-C

• data loggers, such as sensors recording temperatures every hour


s

C
es

w
y

• spreadsheets, which can be used to keep track of data such as expenses


Pr
op

ie
ev

• databases, such as a collection of information about where


ity
C

people like to go on holiday


-R
rs
w
ie

ve

• other productivity software, such as a word processor for writing


t
ev

en
ni

up the investigation.
R

• How to collect categorical and discrete data.


ge

ss
se
id
br

As
am

95
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Look at these descriptions of statistical investigations.

op
&
-C

C
es
1 An investigation 2 An investigation to 3 An investigation to

w
y

Pr
op

ie
to find out the find out who is the find out the most

ev
ity
C

temperature of a oldest in a class popular type of

R
rs
w

home throughout drink in the


ie

ve

t-
the day school canteen
ev

en
ni
R

m
What type of data is collected in each investigation –
ge

ss
discrete, categorical or continuous data?

se
id
br

How could you collect the data in each investigation?


As
am

y
op
&
-C

C
es

w
y

Statistical investigations
Pr
op

ie
Remember, you

ev
ity
C

A statistical investigation is the collection of data can calculate the mean

R
rs
w

to help you find the answer to a question. by adding all of the numbers
ie

ve

t-
For example, Sofia might want to find out the up and dividing the total
ev

en
ni

mean number of goals she scored in every football by the number of numbers
R

match she played in a month. Sofia could look at you have!


ge

ss

each match and then work out the mean.


se
id
br

As
am

Match Number of goals y


op
&

1st 3
-C

C
es

2nd 5
w
y

Pr
op

ie

3rd 1
ev
ity
C

4th 2
-R
rs
w
ie

ve

Mean 2.75
t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

96
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.1 Capturing data

en
ni
U

m
ge

ss
Arun might want to find out how many different birds he sees

se
id
in his garden in an hour. He could count the birds he sees

br

As
over the space of an hour to find this out. This is another
am

y
example of a statistical investigation.

op
&
-C

C
es
Different types of data

w
y

Pr
op

ie
ev
ity
C

There are three types of data: categorical, discrete and

R
rs
w

continuous data.
ie

ve

t-
Categorical data can be grouped into categories. It is usually an
ev

en
ni

opinion, a description of something or a range of numbers. Examples


R

m
include favourite cupcake flavour, colour of pet, favourite type of cat,
ge

ss
favourite lesson, favourite book and age group such as 7 to 11.

se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Continuous data is numerical and can have


Pr
op

ie

any value, not just whole numbers


ev
ity
C

(like discrete data). This means it Continuous


-R
rs
w

can be really precise. It is not usually data can be a number


ie

ve

countable (you cannot use your


t
ev

with a decimal point,


en
ni

eyes to find out the number).


R

like 1.5 or 17.75.


U

Examples include temperature, length,


ge

ss

height, weight, amount of rainfall and


se
id

time in a race.
br

As
am

97
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

Discrete data is numerical but can only have whole values like 0 or 1.
s

C
es

For example, you can’t have half a person! It is often countable,

w
y

Pr
op

like the number of people in a room. Examples include number of

ie
ev
learners in the class, number of customers in a shop, number of
ity
C

R
pets and age.
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

98
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.1 Capturing data

en
ni
U

m
ge

ss
Planning an investigation

se
id
br

As
When planning a statistical investigation, you need to think about
am

y
the following questions:

op
&
-C

s
• What do you want to find out? For example, you might want to

C
es
find out what sort of pets people in your class have.

w
y

Pr
op

ie
• What questions will help you to find out this information?

ev
ity
C

Any questions you ask must give you exactly the information

R
rs
w

you need. You need to think about what sort of answers you will
ie

ve

t-
receive. Do you want to give a choice of answers, or for people to
ev

en
ni

answer freely?
R

m
• Who will you ask? This is linked to what you want to find out.
ge

ss
If your question is specific, you will know which group of people

se
id

you need to ask. For example, ‘Which pets do people in my


br

As
class have?’ is specific. ‘Which pets do people have?’ is not specific.
am

y
op
&
• How will you collect the data? This depends on the data you
-C

C
are trying to collect. If you are asking a simple question such as
es

w
y

‘What is your favourite food?’, you might use a questionnaire.


Pr
op

ie
If you are measuring the temperature of something every

ev
ity
C

10 minutes, you might use a data logger (see next page)

R
rs
w

and a table or a spreadsheet.


ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

99
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
• How will you analyse the data? Depending on the type of data

se
id
you have collected, you might use a suitable chart or graph.

br

As
• What tools will you use throughout the process? For example,
am

y
if you are collecting data on temperatures or light levels,

op
&
-C

you might use a data logger.

C
es
There is a range of different tools that you can use to collect

w
y

Pr
op

ie
data in a statistical investigation, for example:

ev
ity
C

• data loggers

R
rs
w
ie

• spreadsheets
ve

t-
ev

en
ni

• databases
R

m
• other tools like questionnaires or online forms.
ge

ss
se
id
br

Data loggers
As
am

y
op
&
A data logger is a device that uses sensors to collect data over time.
-C

C
es

A data logger is one way of collecting continuous data. A weather

w
y

station is an example of a data logger. This is used to record the


Pr
op

ie
temperature and wind speed for the location of the station every hour.

ev
ity
C

The weather station could be in that


R
rs
w
ie

position for months or even years.


ve

t-
ev

en
ni

Some schools use data loggers in


R

their lessons. You might use a data


ge

ss

logger to test acid levels in drinks


se
id

in science, or to check how voltage


br

As

affects volume, like the learners on


am

the next page! You might use one y


op
&

to check changes in your heart


-C

C
es

rate during sports lessons.


w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

100
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.1 Capturing data

en
ni
U

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
Can you think of a time when you used a data logger in school?

se
id

Often, a data logger can collect data on its own. It does not need a
br

As
person to be there every time data needs to be collected. This means
am

y
it can be left alone or put in a place that is difficult for a person to

op
&
-C

access, like Antarctica or a volcano.


s

C
es

w
y

Pr
op

Did you know?

ie
ev
ity
C

Every year there are between 12 000 to 14 000 earthquakes in the world. These are

R
rs
w

measured using a type of data logger called a seismograph. You can see information
ie

ve

t-
about earthquakes around the world using weather station websites.
ev

en
ni
R

m
ge

ss

Unplugged activity 1
se
id
br

As

You will need: a pen and paper


am

y
op
&
-C

Write down three statistical investigations where you would collect


s

C
es

continuous data.
w
y

Pr
op

ie

How are we doing?


ev
ity
C

-R
rs
w

Swap your three investigations with a partner.


ie

ve

Were all three of your partner’s suggestions examples that would use continuous
t
ev

en
ni

data? Give them a mark out of three, one mark for each correct suggestion.
R

If they lost any marks, work together to come up with a new suggestion.
ge

ss
se
id
br

As
am

101
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Spreadsheets

se
id
br
Remember

As
You may have learnt about how
am
that * is the symbol

y
spreadsheets are used in statistical

op
&
for multiplication and / is the
-C

investigations before. A spreadsheet

C
es
is a useful tool for statistical symbol for division in

w
y

a spreadsheet!

Pr
investigations because you can use
op

ie
it to store data. You can use spreadsheets

ev
ity
C

to perform a range of calculations on the data,

R
rs
w

like finding the average, dividing, multiplying, adding and subtracting.


ie

ve

t-
ev

en
ni
You can also use spreadsheet software to present data visually
R

as a chart or a graph. This is known as a representation of the

m
ge

ss
data. Charts and graphs often make it easier to understand

se
the data you have collected.
id
br

As
Look at the two images below. They show the same data but the data
am

y
is represented in different ways. Which is more useful for identifying

op
&
-C

the most popular type of cat?


s

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

102
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.1 Capturing data

en
ni
U

m
ge

ss
Activity 2

se
id
br

As
You will need: a desktop computer, laptop or tablet, spreadsheet software,
am

y
a pen and paper, a thermometer

op
&
-C

C
es
Investigate the temperature of your classroom to see how it changes

w
y

Pr
during the day.
op

ie
ev
ity
C

Place the thermometer in a sensible place in your classroom, such as on

R
rs
a shelf or table. Your teacher might have a good suggestion.
w
ie

ve

t-
Create this table in a spreadsheet:
ev

en
ni
R

m
Time Temperature
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

At the start of the school day, take the temperature on the thermometer and

R
rs
w

record this in your table. Do the same at the end of every lesson until the end
ie

ve

t-
ev

of the school day.


en
ni
R

The following day, enter the results into a spreadsheet. Use the headings
m
ge

ss

from the table in your spreadsheet.


se
id

Select the data in the spreadsheet and create a suitable chart to represent
br

As

the data. You may be familiar with this from previous learning. Make sure
am

you have added a suitable title to the chart and included a key.
y
op
&
-C

Print out your spreadsheet and chart and stick it in your exercise book.
C
es

w
y

Under the chart, describe what the results tell you. For example,
Pr
op

ie

when is the hottest time in the classroom? Why do you think this is?
ev
ity
C

Is it easier to view this information in a chart? Why? Discuss this with


-R
rs
w

a partner first before writing your explanation.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

103
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Databases

se
id
br

As
A database is a useful way of storing, organising and analysing
am

y
data. For example, if your database stores a list of people and their

op
&
-C

favourite fruit, you can search or filter the data to answer questions

C
es
such as ‘Which people like pineapple?’ This is what the database

w
y

Pr
might look like before you filter the data:
op

ie
I wonder

ev
ity
C

how many people

R
rs
w

in my class like
ie

ve

t-
ev

pineapple.

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

This is what the database would look like if you used a filter y
op
&

to only see the people who like pineapples:


-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

104
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.1 Capturing data

en
ni
U

m
ge

ss
The database can tell you which people meet these criteria. Criteria are

se
id
requirements. For example, search criteria are requirements for the type

br

As
of information you are looking for when you search a database
am

y
or the internet.

op
&
-C

We can use spreadsheet software, such as Excel or Google Sheets,

C
es
to create simple databases and analyse the data in them. Remember

w
y

Pr
that spreadsheet software can be used for many other tasks too!
op

ie
ev
ity
C

Database software, such as Access, is only used to create databases

R
rs
w

and to analyse the data within them.


ie

ve

t-
An example of a database could be a record of all the car licence
ev

en
ni

plates in a particular country. People can search the database


R

m
to see who a car belongs to.
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

Other tools
w
y

Pr
op

ie
ev

When planning an investigation, you can use a mixture of other tools.


ity
C

You might consider a word processor to write up the investigation or


-R
rs
w

to produce a list of questions you want to ask people. This is a useful


ie

ve

t
ev

tool as it automatically checks your spelling, and you can email the
en
ni
R

document or print it.


U

m
ge

ss
se
id
br

As
am

105
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
You could use an online form to create

se
id
a questionnaire for people to fill in.

br

As
A questionnaire is a series of questions that
am

y
you want to ask people. Creating a form online

op
&
means you do not have to print out lots of paper
-C

C
copies to hand out, and you can ask people far

es

w
y

away to fill it in for you. You can even post a

Pr
op

ie
link to your form on a website, or email people

ev
ity
C

a link to the form.

R
rs
w

Online forms automatically provide the results


ie

ve

t-
ev

of your questionnaire in a spreadsheet for you.

en
ni
R

m
ge

ss
Unplugged activity 3

se
id
br

As
You will need: a pen and paper
am

y
op
&
Copy the following table. Write down which data collection tool would
-C

C
be the best to use for each investigation.
es

w
y

Pr
op

ie
Investigation Best tool to use

ev
ity
C

R
Measure the rainfall in a month
rs
w
ie

ve

t-
How many people visit the supermarket
ev

en
ni

on a Monday
R

m
ge

The test results of everyone in your class


ss

for the year


se
id
br

As

The amount of time you spend on your


am

device in a day
y
op
&
-C

C
es

w
y

1 Work with a partner. Select one of the investigations from the table and explain
Pr
op

ie

to your partner why you chose a particular tool to collect data.


ev
ity
C

2 What might the disadvantages be of using an online form to collect data?


-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

106
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.1 Capturing data

en
ni
U

m
ge

ss
Planning a form

se
id
br

As
People are often asked to fill in forms
am

y
op
&
requesting their personal details.
-C

s
For example, this might happen when

C
es
they move to a new school or enter

w
y

Pr
op

ie
a competition.

ev
ity
C

They might also be asked to fill in a form

R
rs
w

asking for their opinion on an item they


ie

ve

t-
have recently bought or on a hotel they
ev

en
ni

have recently stayed in. Business owners


R

m
like to have people’s feedback so they
ge

ss
know if their customers are happy or if

se
id

they need to make any improvements.


br

As
am

y
op
&
Creating a form to collect Stay safe!
-C

C
es

As you get older, you


continuous data

w
y

Pr
op

might start using

ie
ev
social media. Think
ity
C

When creating a form to collect continuous data, you need

R
carefully about what
rs

to think carefully about the following things.


w
ie

ve

information you
t-
• Phrase your questions precisely.
ev

en

share online about


ni

If you are asking someone for the temperature every


R

yourself. You never


m

day in a classroom at midday each day last week, you know who might see
ge

ss

should make sure you include all of these elements in it or what it could be
se
id

the question, like in the first example here: used for.


br

As
am

✓ What was the temperature in your classroom y


op
&

at 12:00 p.m. on Monday?


-C

C
es

✗ What is the temperature?


w
y

Pr
op

ie

You should also make sure that you do not allow people
ev
ity
C

to type their own text answers, and that you only accept
-R
rs
w

answers in the format you want.


ie

ve

• How often should data be entered?


t
ev

en
ni
R

If you want data to be recorded three times a day,


U

you should specify this and make sure there is space in


ge

ss

your form to add three lots of data per day.


se
id
br

As
am

107
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
• Over what period should the data be entered? If you want data

se
id
every day for a week, make sure this is clear. Again, make sure

br

As
there is space in your form to add data every day.
am

y
• What measurements are you going to use?

op
&
-C

(such as mm, cm, kg or lb)?

C
es
Your form should specify the measurements

w
y

Pr
op

ie
you will accept answers in.

ev
ity
C

• How precise should the data be?

R
rs
w
ie

For example, you could request that answers


ve

t-
ev

have one or two numbers after a decimal point.

en
ni
R

m
ge

ss
Unplugged activity 4

se
id

You will need: a pen and paper


br

As
am

y
Work with a partner for this activity.

op
&
-C

C
Zara and Arun have each decided
es

w
to make a form to collect data on
y

Pr
op

ie
everyone’s height in the class so

ev
ity
C

they can help their teacher decide

R
rs
w

where everyone should stand for


ie

ve

t-
the school photo.
ev

en
ni

Take a look at Zara’s form:


R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

108
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.1 Capturing data

en
ni
U

m
ge

ss
Continued

se
id
br
Now look at Arun’s form:

As
am

y
Whose form is better?

op
&
Think about:
-C

C
es
• question type

w
y

Pr
op

ie
• preciseness of the question

ev
ity
C

• whether all necessary

R
rs
w

questions have been asked


ie

ve

t-
ev

en
• whether everyone in the
ni
R

class could complete

m
ge

ss
the form with their data.

se
id

Once you have decided which


br

As
form is more appropriate,
am

y
think about any further

op
&
changes you could make
-C

C
es

to make it even better.

w
y

Try to come up with


Pr
op

ie
two suggestions.

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

How do you make sure that you listen to your partner properly?
w
y

Pr
op

ie

How might you improve your communication in future activities?


ev
ity
C

How did you make sure you agreed on your chosen questions?
-R
rs
w

If you worked together again, how could you improve


ie

ve

t
ev

en

your partnership?
ni
R

m
ge

ss
se
id
br

As
am

109
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Creating a form

se
id
br

As
There are many different ways to create an online form.
am

y
op
&
One popular way is to use an online form creator, like Google Forms.
-C

C
This is an example of an online form.

es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

110
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.1 Capturing data

en
ni
U

m
ge

ss
Online form creators are very easy to use. They also allow you to

se
id
collaborate (work with other people) on the same document at the

br

As
same time with a partner or group and share the finished
am

y
form with anyone.

op
&
-C

Online form creators give you lots of options when choosing question

C
es
type (the way in which you ask your question). For example, you can

w
y

Pr
choose to insert an open text question, a multiple choice question,
op

ie
ev
a ranking question or another type of question. Some online form

ity
C

creators even allow you to add images.

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

Question types
es

w
y

Pr
op

ie

Imagine you want to find the heights of


ev
ity
C

everyone in your class so you can


-R
rs
w

decide who stands where in the class


ie

ve

photo. What question types would


t
ev

en
ni

help you to collect this continuous data?


R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Open text questions

se
id
br
Open text questions allow people to write their own answer, but

As
am
they might not submit their answer in the correct format or with

y
op
&
the correct type of measurement. To prevent this, you could allow a
-C

C
written answer with validation rules. Validation rules are restrictions

es

w
that make sure that only certain types of answer are accepted, like
y

Pr
op

ie
only words or only symbols. You may remember validation rules

ev
ity
C

from lessons in previous years.

R
rs
w

Examples of open questions:


ie

ve

t-
ev

en
• Why do you like reading?
ni
R

m
• What is your favourite lesson and why?
ge

ss
• What is your opinion on the local library?

se
id
br

Multiple choice questions As


am

y
op
&
-C

Multiple choice questions allow people to pick from a range of


s

C
es

answers. However, because continuous data is numerical data that

w
y

Pr

can have any value, it would take forever to add answer options to
op

ie
cover every possibility. You could limit the options you provide, but this

ev
ity
C

would mean that some people would not be able to enter their data.

R
rs
w
ie

ve

t-
Examples of multiple choice questions:
ev

en
ni

• Do you like to play tennis?


R

Yes No
ge

ss
se
id

• What is your favourite colour?


br

As

Red Yellow
am

y
op
&

Pink Green
-C

C
es

Orange Purple
w
y

Pr
op

Blue Brown
ie
ev
ity
C

Other
-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

112
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.1 Capturing data

en
ni
U

m
ge

ss
Ranking questions

se
id
br
Ranking question types allow the person to select their response on a

As
am
scale, for example 1 to 5 where 1 is the worst and 5 is the best.

y
op
&
This type of question is useful when asking people their opinions
-C

C
about something, but it will not allow you to collect continuous or

es

w
discrete data.
y

Pr
op

ie
Example of a ranking question:

ev
ity
C

R
• How would you rate today’s lunch on a scale of 1 to 5,
rs
w
ie

ve
with 5 being excellent?

t-
ev

en
ni
R

m
1 2 3 4 5
ge

ss
se
id
br

As
Other questions
am

y
op
&
You also need to remember to ask
-C

important questions about the person

C
es

completing the form. For example,

w
y

Pr
op

ie
you might need to know the name of

ev
ity
C

the person answering the questions.

R
rs
w

If you were collecting data on pets,


ie

ve

t-
you would need to know if the person
ev

en
ni

answering the questions has a pet.


R

If not, they would not need to answer


ge

ss

the rest of the questions!


se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

113
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Unplugged activity 5

se
id
br
You will need: a pen and paper

As
am

y
op
&
Work with a partner for this activity.
-C

C
es
Write questions for a form which will allow

w
y

respondents to record continuous data.

Pr
op

ie
Choose one of these investigations to focus on:

ev
ity
C

• You want to investigate who the tallest

R
rs
w
ie

person is in your class.


ve

t-
ev

en
ni

• You have a friend in Norway. You want to compare the average temperature
R

m
at midday across a period of a week between where you live and Norway.
ge

ss
• You want to find out who in your class has made the best paper plane

se
id

by seeing whose flies the furthest. You fly them three times each to get
br

accurate results.
As
am

y
op
&
• You want to know who in your class has the heaviest school bag.
-C

C
es

Think about:

w
y

Pr
op

• whether the data changes over

ie
Remember,

ev
time and needs to be entered
ity
C

continuous data can


R
multiple times
rs
w

change over time. It can


ie

ve

t-
• when the data should
be any data that is measured
ev

en
ni

be recorded
and can take any value,
R

• what measurements should like the time it takes


ge

ss

be used to finish a race.


se
id
br

• the wording of your questions.


As
am

Write your questions down on a piece of paper. y


op
&
-C

Think about how you want your form to look, too.


s

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

114
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.1 Capturing data

en
ni
U

m
ge

ss
Activity 6

se
id
br

As
You will need: a desktop computer, laptop or tablet with access
am

y
to the internet and source file 2.1_class_height_order

op
&
-C

C
es
Sofia has made some changes to Zara and Arun’s forms.

w
y

Pr
op

Open source file 2.1_class_height_order, which is a Google Forms document,

ie
ev
to see what she has done. Remember that you will need to open the form

ity
C

in a web browser once you have access to the weblink.

R
rs
w
ie

ve

t-
What happens when you try the following?
ev

en
ni

• Leave question 1 blank, scroll to the bottom of the page and press
R

m
the red ‘Next’ button.
ge

ss
• Select ‘No’ for question 2, ‘Would you like to be in the class photo?’.

se
id
br

As
• Enter the number 7 for question 3.
am

y
Why do you think Sofia designed the form to react in these ways?

op
&
-C

What is the benefit?


s

C
es

w
Suggest two reasons why Sofia’s form is more appropriate than
y

Pr
op

ie
Zara’s or Arun’s.

ev
ity
C

R
rs
w
ie

ve

t-
Benefits of an online form creator
ev

en
ni
R

Using an online form creator rather than a word processor has


ge

ss

many advantages.
se
id

A word processor will allow you to format the questions so the


br

As

form looks presentable and clear, but an online form creator


am

y
op
&

will do much more:


-C

You can add as many questions as you need.


es


w
y

Pr

• The response options are automatically arranged for you.


op

ie
ev

• The results are automatically saved, analysed and sent to you.


ity
C

-R

You can easily share the link to the form with anyone in the world.
rs


w
ie

ve

• Users do not need special software to complete the form.


t
ev

en
ni

They only need an internet connection and a web browser.


R

m
ge

ss
se
id
br

As
am

115
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Stay safe!

se
id
Using an online

br
When creating and

As
am form creator means someone
sending an online

y
from another country could complete

op
&
form, think about
your form. This is very useful when
-C

C
how you share the

es
you want to collect data from

w
form. Your teacher
y

Pr
all over the world!
op

ie
will show you how

ev
ity
C

you can change the

R
rs
w

settings so that only


ie

ve

t-
specific people can
ev

en
ni

access your form.


R

m
ge

ss
se
id

Practical task 1
br

As
am

y
You will need: your questions from Unplugged activity 5, a desktop computer,

op
&
-C

laptop or tablet with an internet connection, a Google account


s

C
es

w
y

You are now going to create an online form using your questions.
Pr
op

ie
Work with your partner. Use your paper plan to help you.

ev
ity
C

1 Log in to a Google account and go to Google Forms.


R
rs
w
ie

ve

t-
2 Under ‘Start a new form’ press ‘Blank’.
ev

en
ni

3 Create your form. (A template for the first question will appear automatically.)
R

a Give your form a title.


ge

ss

b Select the question type you want to use


se
id

(for example, short answer or check boxes).


br

As

c Type in your question text.


am

y
op
&

d If you have selected multiple choice or check boxes,


-C

type in the answer options.


es

w
y

4 To add another question, press the plus (+) in a circle in


Pr
op

ie

the toolbar on the right.


ev
ity
C

You might need to slightly change the question types that you planned
-R
rs
w

to use as there is a limited number of question types in Google Forms.


ie

ve

t
ev

en
ni

All changes to your form are saved automatically.


R

m
ge

ss
se
id
br

As
am

116
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.1 Capturing data

en
ni
U

m
ge

ss
Continued

se
id
br

As
5 When you are both happy with the form,
am

y
share it with others in your class:

op
&
-C

s
a Press ‘Send’ in the top right corner of the screen.

C
es

w
b Press on the link icon next to the envelope.
y

Pr
op

ie
c Press ‘Copy’.

ev
ity
C

d Share the link with

R
If you are all using
rs
w

your classmates.
ie

ve

t-
the same computer, you
ev

6 To complete a form:

en
ni

can all fill in the form one after the


R

a Paste the link into

m
other. Just press ‘Submit another
ge

a new web

ss
response’ after each person
browser tab.

se
id

submits their answers.


br

b Fill in the form


As
am

then press ‘Submit’.

y
op
&
-C

C
How are we doing?
es

w
Hold up a red, yellow or green card to show how confident you are with
y

Pr
op

ie
writing questions for a form.

ev
ity
C

• Red means you do not really understand and you need more help.

R
rs
w

• Yellow means your confidence is increasing but you need support


ie

ve

t-
ev

or more practice.
en
ni
R

• Green means you are confident enough to teach others.


m
ge

ss

If you held up a green card for one of the questions, find someone who
se
id

held up a red or yellow card for that question. Help them to understand
br

As

the things they are not sure about.


am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

117
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
se
id
Did you both agree on what question types to use when creating

br

As
the form? Why/why not?
am

y
op
&
How easy was the form to fill in? What made it easy or difficult?
-C

C
What would you do differently next time?

es

w
y

Pr
op

ie
ev
ity
C

R
Questions rs
w
ie

ve

t-
ev

en
ni

1 Describe an advantage of using an online form creator.


R

m
2 Suggest two question types that would not be appropriate
ge

ss
for collecting continuous data.

se
id

3 List three computing tools that can help with statistical


br

As
investigations, with examples of how they can be used.
am

y
op
&
-C

C
Look what I can do!
es

w
y

Pr

I can describe the role of different tools I can use in statistical investigations.
op

ie
ev
ity
C

I can plan a statistical investigation.

R
rs
w

I can explain how continuous data can be collected.


ie

ve

t-
ev

I can create an appropriate form for collecting continuous data.


en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

118
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.2 Creating a spreadsheet

en
ni
U

m
ge

ss
2.2 Creating a spreadsheet

se
id
br

As
am

y
op
&
We are going to:
-C

C
• explore the features of a spreadsheet

es

w
y

Pr
op

• design a spreadsheet with different features and functions

ie
ev
ity
C

• select some data for a given purpose.

R
rs
w

AVERAGE spreadsheet
ie

ve

t-
cell reference SUM
ev

en
ni

formula unique
R

m
ge

ss
se
id

Getting started
br

As
am

What do you already know?

y
op
&
-C

• How to add data into a spreadsheet.


s

C
es

How to use simple operators in a spreadsheet, including +, -, *,

w

y

Pr
op

ie
and /, for calculations.

ev
ity
C

• How to use simple formulas in a spreadsheet.

R
rs
w
ie

ve

t-
• How to use built-in functions including SUM and AVERAGE.
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

119
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Look at the spreadsheet. It shows the cost of different items that are

op
&
-C

sold in a stationery shop and how many of each item the shop has.

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
With a partner, discuss how you could answer the following questions:
ity
C

R
rs
w

1 What formula could you use to work out the total cost of the pens?
ie

ve

t-
2 How could you calculate the total cost of all the items in the shop?
ev

en
ni

3 How could you fill the ‘Total’ cell with data?


R

What calculation would be needed?


ge

ss

4 What other calculations could you do with this data?


se
id
br

As
am

y
op
&

Features of a spreadsheet
-C

C
es

w
y

A spreadsheet is a document that is split into a


Pr
op

ie

large grid. Each box in the grid is called a cell.


ev
ity
C

The cells are organised in rows and columns.


-R
rs
w

Each row has a unique number and each column


ie

ve

t
ev

has a unique letter. Unique means it is not like


en
ni
R

anything else, and that there is only one of


U

them – like you!


ge

ss
se
id
br

As
am

120
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.2 Creating a spreadsheet

en
ni
U

m
ge

ss
You can use a spreadsheet to store data or information.

se
id
However, spreadsheets can do much more than store data!

br

As
They are powerful computing tools that we can use to
am

y
carry out complex calculations. Spreadsheets are often

op
&
used to analyse data such as sales, stocks of goods in a
-C

C
shop, or financial information.

es

w
y

Pr
op

ie
ev
ity
Cell references
C

R
rs
w
ie

ve

t-
Each cell has an address made up of a letter and a number.
ev

en
ni

This is known as a cell reference.


R

m
In a cell reference, the letter tells you how far along the cell is from left
ge

ss
to right (which column the cell is in). The number tells you how far

se
id

down the cell is (which row it is in).


br

As
Look at the spreadsheet in the picture. The selected cell has a cell
am

y
op
&
reference of B3.
-C

C
es

w
y

Pr

font information data type


op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

cell reference name of worksheet selected cell


ge

ss
se
id
br

As
am

121
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Cell references make it really easy to make calculations, because we can

se
id
use the cell reference to find values by just typing in the cell reference.

br

As
am

y
op
&
Formulas
-C

C
es
To make a calculation in a spreadsheet, we need to use a formula.

w
y

Pr
op

ie
A formula is an instruction to do a calculation. Spreadsheet formulas

ev
ity
C

combine cell references with arithmetic operators. Remember,

R
rs
w

arithmetic operators are the symbols we use to do maths,


ie

ve

t-
such as + (plus), − (minus), * (multiply), / (divide).
ev

en
ni

You might already know how to use a


R

m
formula in a spreadsheet with numbers
ge

ss
and arithmetic operators, like this: I need to remember

se
id

=6+1664. to include = at the start


br

As
of my formulas.
In this topic, you will use cell
am

y
op
&
references to make calculations.
-C

C
For example, =C3*D4 is an example of a simple formula that multiplies
es

w
y

the value in C3 by the value in D4. If the cell C3 contained the


Pr
op

ie
number 2 and the cell D4 contained the number 4, the formula

ev
ity
C

would return 8. A formula must begin with =. This is so the

R
rs
w

spreadsheet software knows you are doing a calculation.


ie

ve

t-
ev

You must put the formula for the calculation you want to do in a
en
ni
R

separate cell (not either of the cells you are trying to use in the
U

calculation). Look at the spreadsheet below. You can see that the
ge

ss

formula is written in cell D5, which is not used in the calculation.


se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

122
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.2 Creating a spreadsheet

en
ni
U

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

When writing a formula, you can type directly into a cell. Click on an
s

C
es

empty cell to start typing into it. To change part of the data already in

w
y

Pr
op

a cell, double-click on the cell before typing. Alternatively, you can type

ie
ev
into the formula bar at the top of the spreadsheet. You only need to
ity
C

click in the formula bar once before you start typing.


R
rs
w
ie

ve

t-
ev

en
ni
R

Click the formula


m
ge

bar to type into it.


ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Click or double-click
Pr
op

ie

a cell to type into it.


ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

123
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Unplugged activity 1

se
id
br

As
You will need: a pen and paper
am

y
op
&
Look at this spreadsheet belonging to the owner of a winter clothes shop.
-C

C
The owner knows how many items she sold and what she sold, but forgot

es

w
y

how much she sold them for!

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

1 What formula would you need to write, and in which cell, to calculate
ge

ss

the price per item for:


se
id

a hats? b gloves? c socks?


br

As
am

2 Write a formula to calculate how much it would cost to buy 127 y


op
&

of each item listed above.


-C

C
es

w
y

Pr
op

ie

Functions
ev
ity
C

-R
rs
w

Just like in programming, a function is a sub-routine in the spreadsheet


ie

ve

software’s code. There are lots of different functions that are ready for
t
ev

en
ni

us to use in a spreadsheet. Each function contains a hidden formula


R

that has already been written for us. We can call a function by using
ge

ss

its name. We will focus on the functions SUM and AVERAGE.


se
id
br

As
am

124
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.2 Creating a spreadsheet

en
ni
U

m
ge

ss
When we want to use a function in a formula, we follow these steps:

se
id
1 start with an equals sign: =

br

As
2 add the name of the function we want to use,
am

y
op
&
for example SUM or AVERAGE
-C

C
3 type the cell references we want to use in the function in

es
brackets: ( ). This is so that the spreadsheet software can tell the

w
y

Pr
op

ie
difference between the function name and the rest of the formula.

ev
ity
C

R
rs
w

SUM
ie

ve

t-
ev

The SUM function calculates the total of the values in the

en
ni
R

selected cells.

m
ge

ss
For example, if we want to add up all the values in the cells A1 to A10,

se
id

we could use the following formula: =SUM(A1:A10)


br

‘SUM’ comes straight after = because that is


As
am

y
the function we are using. The cells we Remember to

op
&
-C

want the sum of are written within add in the colon so that
s

C
es

brackets. The colon (:) means ‘to’. the spreadsheet software

w
y

Pr

So, the formula will calculate the sum


op

knows which values

ie
ev
of the cells from A1 to A10 (A1, A2, A3, to add together.
ity
C

A4, A5, A6, A7, A8, A9 and A10).


R
rs
w
ie

ve

t-
ev

en
ni

AVERAGE
R

The AVERAGE function calculates the mean of the values in the


ge

ss

selected cells. You can calculate a mean by adding together all


se
id

of the values and dividing the answer by the number of values.


br

As
am

We can calculate the average in a spreadsheet using the following y


op
&

formula: =AVERAGE(A1:A10)
-C

C
es

Again, we must remember to include the colon (:) so that the


w
y

Pr

spreadsheet software knows which values to use in its calculation.


op

ie

We also must remember to use the function name ‘AVERAGE’ before


ev
ity
C

we type in the cell references. Otherwise, the spreadsheet software


-R
rs
w

will not know what to do with the values!


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

125
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Unplugged activity 2

se
id
br

As
You will need: a pen and paper
am

y
op
&
With a partner, identify the incorrect formulas in the following list.
-C

C
es
1 =SUMB5:B10

w
y

Pr
op

2 =(B5:B10)

ie
ev
ity
C

3 =SUM(B5:B10)

R
rs
w

4 AVERAGE(B5:B10)
ie

ve

t-
5 =AVERAGE(B5-B10)
ev

en
ni

6 =B5/B10
R

m
7 B5*B10
ge

ss
8 =AVERAGE(B5B10)

se
id
br

As
9 SUM=(B5:B10)
am

y
10 =AVERAGE(B5:B10)

op
&
-C

Why is each formula you have identified incorrect? Write them again, correctly.

C
es

w
y

Pr
op

ie
ev
ity
C

Did you know?

R
rs
w

There are a maximum of 1,048,576 rows and 16,384 columns in


ie

ve

t-
Microsoft Excel, which gives us 17,179,869,184 cells in total.
ev

en
ni
R

There are at least 475 functions, depending on which software you


U

are using, which are built in for you to use in a spreadsheet!


ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

126
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.2 Creating a spreadsheet

en
ni
U

m
ge

ss
Activity 3

se
id
br

As
You will need: a desktop computer, laptop or tablet, spreadsheet software
am

y
and source file 2.2_winter_clothes_shop

op
&
-C

C
es
Open source file 2.2_winter_clothes_shop.

w
y

Pr
op

ie
You will see that there are three empty

ev
ity
C

cells: B14, C14 and D14. You are going to

R
rs
do calculations in these cells using formulas.
w
ie

ve

t-
Type a formula in B14 to calculate the total
ev

en
ni

sales (money customers paid for items).


R

m
Type a formula in C14 to calculate the
ge

ss
total number of items sold.

se
id
br

Type a formula in D14 to calculate the


As
am

average price per item in the shop.

y
op
&
-C

C
es

How are we doing?

w
y

Pr
op

ie
Compare your answers with a partner.

ev
ity
C

• Did your calculations give you the same output?

R
rs
w

• If not, can you identify whose is correct and why?


ie

ve

t-
ev

en
ni

• Did your partner use the SUM and AVERAGE formulas, or did they
R

use a different formula?


ge

ss

Give your partner’s spreadsheet and calculations a rating from 1 to 3:


se
id

1 means the spreadsheet was perfect – the answers were correct and
br

As

they used the SUM and AVERAGE functions.


am

y
op
&

2 means the spreadsheet was good but there was room for improvement.
-C

Maybe your partner used a different formula but got the right answers.
es

Maybe they used the appropriate formula but made a mistake.


y

Pr
op

ie

3 means your partner did not get the right answers and did not
ev
ity
C

use SUM or AVERAGE.


-R
rs
w

If your partner scored 2 or 3, work together to ensure their spreadsheet


ie

ve

t
ev

is correct.
en
ni
R

m
ge

ss
se
id
br

As
am

127
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Questions Stay safe!

se
id
As with any

br

As
1 Why is it useful to use cell references?
document,
am

y
2 Why should you use a formula? Give two reasons.

op
&
you should be
-C

s
3 What advantage is there to using a built-in function careful opening

C
es
in a spreadsheet? spreadsheets if you

w
y

Pr
op

ie
4 What formula or function would you use to calculate are not sure where

ev
ity
C

the total value of cells D3 to D40? they come from.

R
rs
w

This is because
ie

ve

t-
they can include
Planning a spreadsheet
ev

en
ni

hidden code that


R

m
can damage
In Topic 2.1, you planned the questions you wanted to ask
ge

ss
your computer.
your class before you created an online form.

se
id
br

When you want to create a spreadsheet, you also need to


As
am

carefully plan what it is going to look like and what you would

y
op
&
like it to do. You need to think about the formulas you could use
-C

C
and the type of data the cells might contain.
es

w
y

Pr

When you create a spreadsheet, ask yourself these questions:


op

ie
ev
ity
C

• What data do I want to use?

R
rs
w

• What headings will the data have?


ie

ve

t-
• How will I organise the data so that is it easy
ev

en
ni

to understand?
R

• What format will the data be in?


ge

ss

• What calculations do I want to do on the data?


se
id

• What formulas or functions can I use to perform


br

As
am

these calculations? y
op
&
-C

I want to know
es

the total number of


y

Pr
op

ie

hours I watch TV in a week,


ev
ity
C

so I know I need a blank


-R
rs
w

cell where I can make


ie

ve

this calculation.
t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

128
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.2 Creating a spreadsheet

en
ni
U

m
ge

ss
Unplugged activity 4

se
id
br

As
You will need: a pen and paper
am

y
op
&
Work in pairs to plan a class outing to the
-C

C
es
local park for a picnic.

w
y

Pr
op

You need to decide what food and drink you

ie
ev
will need for the picnic and the amount of

ity
C

each item you need.

R
rs
w
ie

ve

t-
Copy the following tables onto paper.
ev

en
ni

Everyone in your class should choose one


R

m
drink and up to three food items they would
ge

ss
like to eat from the lists below. They can

se
id

only choose items from the lists. Each person in the class
br

As
can vote for their choices. Your teacher will help you with this.
am

y
op
&
Food Number
-C

C
es

Tandoori turkey sandwich

w
y

Pr
op

ie
Spring rolls

ev
ity
C

R
Crisps
rs
w
ie

ve

t-
Bhaji
ev

en
ni
R

Bao bun
ge

ss

Fruit salad
se
id
br

As

Crackers
am

y
op
&

Chicken sticks
-C

C
es

Chocolate
w
y

Pr
op

ie

Sugar cookies
ev
ity
C

-R

Cake
rs
w
ie

ve

Pakoras
t
ev

en
ni
R

Kebabs
ge

ss
se
id
br

As
am

129
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Continued

se
id
br

As
Drink am Number

y
op
&
Water
-C

C
es
Milk

w
y

Pr
op

ie
Soda

ev
ity
C

Juice

R
rs
w
ie

ve

t-
ev

en
ni
R

m
Selecting data for a purpose
ge

ss
se
id

Spreadsheets often contain large amounts of data. This means it is


br

very useful to be able to select particular


As
am

y
op
&
pieces of data that allow you to answer
-C

You selected
s

a question or complete a task.

C
es

data for a purpose

w
y

A supermarket might have a huge


Pr

in Activity 3 when you chose


op

ie
amount of data on what they sell

ev
the data you needed to make
ity
C

each day, but if they want to answer


the SUM and AVERAGE
R
rs
w

questions about how much of an item


ie

ve

calculations.
t-
they have sold, they need to select
ev

en
ni

particular pieces of data.


R

They might decide to group the data into different categories,


ge

ss

such as fruit, and calculate how many of each item they have sold.
se
id

Or they might select sales at different times of day to calculate how


br

As

many customers they had in a specific hour.


am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

130
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.2 Creating a spreadsheet

en
ni
U

m
ge

ss
The owner of the supermarket might not just want to know how many

se
id
apples have been sold that day, but they might want to know how

br

As
many apples are left in stock.
am

y
All these different scenarios can be worked out in a spreadsheet by

op
&
-C

selecting specific data and using a suitable formula.

C
es
To work out how many apples are left, the owner might use a formula

w
y

Pr
op

ie
that uses subtraction, but to work out how much money they will

ev
ity
C

make from selling all the apples, they might use a multiplication

R
rs
w

formula. However, whether they get useful results depends on them


ie

ve

t-
selecting the correct data to use in the calculations.
ev

en
ni

To select data in a spreadsheet to use in a calculation, you can either:


R

m
• type cell references into a formula
ge

ss
se
id

• click and drag the cells you want to use.


br

As
We already know how to type cell references into a formula from the
am

y
Functions section of this topic.

op
&
-C

C
es

Activity 5

w
y

Pr
op

ie
ev
ity

You will need: a desktop computer, laptop or tablet, spreadsheet software


C

R
rs

and source file 2.3_weather_data


w
ie

ve

t-
ev

Look at source file 2.3. The spreadsheet shows weather data for one month.
en
ni

The data was collected by a data logger at 9 a.m. every day.


R

m
ge

ss

Use the spreadsheet to calculate:


se
id

1 the mean maximum temperature for the month Remember, the


br

As

2 the mean minimum temperature for the month mean is a kind of average
am

you can use a spreadsheet


y
op
&

3 the mean humidity for the month


-C

to calculate
s

4 the mean pressure for the month.


es

w
y

Discuss with a partner how you could make these calculations.


Pr
op

ie

Why would you not perform any calculations on the wind direction?
ev
ity
C

-R

Complete the calculations in the spreadsheet.


rs
w
ie

ve

Show your partner what data you selected to perform each calculation.
t
ev

en
ni
R

Selecting data for a purpose in an existing spreadsheet can sometimes


ge

ss

be difficult because you need to familiarise yourself with the data


se
id

before you know that to select.


br

As
am

131
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Designing your own spreadsheet helps with this, because you will

se
id
know where to find the data you need for your calculations.

br

As
am

y
Unplugged activity 6

op
&
-C

C
es
You will need: a pen and paper and your completed tables

w
y

Pr
op

from Unplugged activity 4

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
With the same partner you worked with in Unplugged activity 4, you are
ev

en
ni

going to plan a spreadsheet to record what is needed for the class picnic.
R

You can only buy the five most popular food items for the picnic.
ge

ss

You need to make calculations to find out:


se
id
br

As

• how many people are attending the picnic


am

• what the five most popular food items are (you should use
y
op
&
-C

only these five food items in your calculations)


s

C
es

• how many of each drink you need


y

Pr
op

ie

• how much drinks will cost in total


ev
ity
C

-R

• how much food will cost in total


rs
w
ie

ve

• what the average cost is for each person attending the picnic
t
ev

en
ni

• how much the picnic will cost in total.


R

m
ge

ss
se
id
br

As
am

132
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.2 Creating a spreadsheet

en
ni
U

m
ge

ss
Continued

se
id
The price lists for the food and drink are as follows.

br

As
am

y
Food Cost for 1 serving

op
&
-C

C
Tandoori turkey sandwich $1.07

es

w
y

Pr
op

Spring rolls $0.87

ie
ev
ity
C

Crisps $0.59

R
rs
w
ie

ve

t-
Bhaji $1.13
ev

en
ni

Bao bun $1.52


R

m
ge

ss
Fruit salad $1.87

se
id

Crackers $0.61
br

As
am

y
Chicken sticks $1.01

op
&
-C

C
Chocolate $0.43
es

w
y

Pr
op

Sugar cookies $0.65

ie
ev
ity
C

Cake $0.85
R
rs
w
ie

ve

t-
Pakora $1.15
ev

en
ni

Kebabs $0.98
R

m
ge

ss

Drink Cost for 1 serving


se
id
br

As

Water $0
am

y
op
&

Milk $0.41
-C

C
es

Soda $0.99
w
y

Pr
op

ie

Juice $0.81
ev
ity
C

Your spreadsheet plan should also show how you will use
-R
rs
w
ie

the following at least once:


ve

t
ev

en
ni

• formulas (with cell references and arithmetic operators)


R

• the SUM function


ge

ss

• the AVERAGE function.


se
id
br

As
am

133
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Continued

se
id
You should also show what data you will select when you

br

As
am
use formulas and functions.

y
op
&
As you work on your plan, think about these questions:
-C

C
es
• What headings will the data have?

w
y

Pr
op

ie
• Are you organising the data into columns or rows?

ev
ity
C

• What format will the data be in?

R
rs
w
ie

ve

t-
ev

en
ni
Activity 7
R

m
ge

ss
You will need: a desktop computer, laptop or tablet, spreadsheet software,

se
your plans from Unplugged activity 6
id
br

As
Work with the same partner as you did in Unplugged activities 4 and 6.
am

y
op
&
Use your plan from Unplugged activity 6 to create your picnic spreadsheet.
-C

C
Remember to use formulas and the SUM and AVERAGE functions.
es

w
y

Pr
op

ie
How are we doing?

ev
ity
C

Once you have completed your spreadsheet, share it with another pair.

R
rs
w

Explain how you have created your spreadsheet.


ie

ve

t-
ev

Ask the pair for feedback on your spreadsheet.


en
ni
R

Look at the spreadsheet from the other pair. Check the following:
m
ge

ss

• Has all the relevant data been included?


se
id

• Have they used the SUM and AVERAGE functions?


br

As

• Have they used formulas correctly, with cell references and


am

y
op
&

arithmetic operators?
-C

• Did they select the correct data to perform their calculations?


es

w
y

Pr
op

ie
ev
ity
C

Look what I can do!


-R
rs
w
ie

ve

I can explain the different features of a spreadsheet,


t
ev

en

including how to use a range of formulas and functions.


ni
R

I can design a spreadsheet with different features and functions.


ge

ss

I can select data in a spreadsheet to use in calculations.


se
id
br

As
am

134
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.3 Creating a database

en
ni
U

m
ge

ss
2.3 Creating a database

se
id
br

As
am

y
We are going to:

op
&
-C

C
• design a single table database

es

w
y

Pr
op

• create a single table database

ie
ev
ity
C

• search for information in a database using a phrase.

R
rs
w
ie

ve

t-
attribute filter
ev

en
ni

database phrase searching


R

m
data type record
ge

ss
field

se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss

Getting started
se
id

What do you already know?


br

As
am

• You can find data that matches a single keyword. y


op
&
-C

• Data can be edited and updated.


s

C
es

w
y

• Changing data input into a spreadsheet impacts the calculated outputs.


Pr
op

ie
ev

• The difference between physical (paper-based) and digital databases.


ity
C

-R
rs
w

• How to use a database to answer a single question.


ie

ve

t
ev

• The different parts of a database table, including what a record


en
ni
R

is and what a field is.


U

m
ge

ss

• A database is one tool that can be used in a statistical investigation.


se
id
br

As
am

135
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Look at this database. It shows a range of information about some cars.

op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni

With a partner, discuss how you could use the database to answer
R

the following questions:


ge

ss

1 How many cars are green?


se
id
br

2 What steps would you take to find a specific car?


As
am

y
op
&
-C

What is a database?
es

w
y

Pr
op

ie

A database is an organised set of data. Databases are really useful


ev
ity
C

because data is much easier to use when it is organised.


-R
rs
w

A database is made up of records and fields.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

136
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.3 Creating a database

en
ni
U

m
ge

ss
A record provides all the data about one thing. For example, the record

se
id
below provides all the data about the car that Marcus’s mum drives:

br

As
am

y
Colour: red

op
&
-C

C
Car make: Toyota

es

w
y

Fuel type: petrol

Pr
op

ie
ev
Age (in years): 5

ity
C

R
rs
w
ie

ve

t-
Each record in a database is made up of
ev

en
ni
different fields. A field is a category of
R

data within a record. For example,

m
ge

ss
in the record above, the fields are:

se
id

• Colour
br

• Car make
As
am

y
op
&
• Fuel type
-C

C
es

• Age (in years)

w
y

Pr
op

ie
A record is complete when all fields

ev
ity
C

are filled with data.

R
rs
w

In a database, records are usually organised as rows, and fields are


ie

ve

t-
usually organised as columns. But this is not always the case!
ev

en
ni
R

An attribute is the data found in


U

one field of a record in a database.


ge

ss

Look again at the record above If my teacher had


se
id

for the car that Marcus’s a database with all the


br

As

mum drives. learners in our class, I would be


am

a record in it. The fields the teacher


y
op
&

The attributes in this record


-C

might have could include


s

are red, Toyota, petrol and 5.


es

my name, my address and


w
y

Pr
op

ie

my birthday.
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

137
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Questions

se
id
br

As
Look at this record about a country.
am

y
op
&
Country: Oman
-C

C
es
Size (in km2): 309 500

w
y

Pr
op

ie
Population: 4 576 298

ev
ity
C

Language: Arabic

R
rs
w
ie

ve

t-
Currency: Omani rial
ev

en
ni
R

m
1 What are the fields in the record?
ge

ss
2 What are the attributes of the record?

se
id
br

Did you know?


As
am

y
op
&
AllMusic.com is an online database that contains
-C

C
es

information for over 30 million music tracks and

w
y

3 million albums. You can search for music based


Pr
op

ie
on the type, artist or other individuals that were

ev
ity
C

involved in any of the tracks.

R
rs
w
ie

ve

t-
ev

en
ni

Data types
R

m
ge

ss

We can store the data in a database in the form of


se
id

different data types. A data type tells us the way


br

As

that data is presented, for example as text


am

or numbers.
y
op
&
-C

You may have previously learnt about


es

two types of data: number and text.


y

Pr
op

ie

In Unit 1 of this book, you learnt


ev
ity
C

about integer, character and


-R
rs
w

string data types.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

138
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.3 Creating a database

en
ni
U

m
ge

ss
Look at this table for some information about database data types.

se
id
br
Data type Description Example

As
am

y
Integer Whole numbers only 500

op
&
-C

C
Text Words only mustard

es

w
y

Pr
Character A single letter, number or symbol R
op

ie
ev
ity
C

String More than one character joined together marcus_42*

R
rs
w

(can include any character)


ie

ve

t-
ev

en
ni
R

Question

m
ge

ss
se
id

3 Identify the data types


br

used in the attributes of


As
am

the following record:

y
op
&
a Country: Oman
-C

C
es

b Size (in km2): 309 500

w
y

Pr
op

ie
c Population: 4 576 298

ev
ity
C

d Language: Arabic

R
rs
w

e Currency: Omani rial


ie

ve

t-
f Have you visited
ev

en
ni

this country? ✓
R

m
ge

ss

Formatting data
se
id
br

As

In a digital database, we can use formatting tools to make sure the


am

data appears in the way we want it to. For example, if the data type y
op
&

is an integer (a whole number), we need to make sure the data will be


-C

displayed without a decimal point.


es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

139
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
We can format our data as text, number, currency, date, time,

se
id
percentage or fraction. There are also lots of other categories

br

As
we can use!
am

y
For example, if you type ‘21’ into a cell that is categorised as the

op
&
-C

currency US dollars, the spreadsheet automatically changes the

C
es
data to $21.

w
y

Pr
op

ie
Look at the table. It shows the common ways we categorise data

ev
ity
C

in a spreadsheet and how the spreadsheet formats this data.

R
rs
w
ie

ve

t-
Data category How does the spreadsheet format the data?
ev

en
ni

Number Only a number can be entered. We can specify if


R

m
the number has any decimal places.
ge

ss
Currency Data is automatically formatted as money, for example $3,

se
id
br

£3 or €3.
As
am

y
Date This puts the data into the format of a date,

op
&
-C

for example 12/03/23.


s

C
es

w
Time This puts the data into the format of a time,
y

Pr
op

ie
for example 07:36:00.

ev
ity
C

Text Any text can be entered. A good example of this


R
rs
w

is headings or labels.
ie

ve

t-
ev

en
ni

Percentage This puts the data into a percentage format, for example
R

0.75 shows as 75%.


ge

ss

Fraction This puts the data into a fraction format, for example
se
id

0.5 shows as 1/2.


br

As
am

y
op
&

When entering data into a spreadsheet database, the data is


-C

automatically categorised as ‘General’, which means you can enter


C
es

anything. The software will automatically decide how to treat


w
y

Pr
op

ie

the data unless you format the data yourself. For example,
ev
ity

if you entered $5, the spreadsheet would treat it as currency.


C

-R

Sometimes spreadsheets can get confused if we use multiple


rs
w
ie

ve

kinds of numbers in the same column or row, like a number


t
ev

en

and a date, so it is useful to know how to change the


ni
R

formatting yourself.
m
ge

ss
se
id
br

As
am

140
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.3 Creating a database

en
ni
U

m
ge

ss
Practical task 1

se
id
br

As
am
You will need: a desktop computer, laptop or tablet and

y
op
&
source file 2.4_formatting_data
-C

C
es
You are going to practise formatting data so that a data type

w
y

Pr
op

is displayed correctly.

ie
ev
ity
C

1 Open source file 2.4_formatting_data.

R
rs
w

2 Select the data you wish to format.


ie

ve

t-
3 Open the menu as shown in the image below.
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

4 Choose the formatting option you want to use.


en
ni

The spreadsheet will format the cell as requested.


R

m
ge

ss
se
id
br

As
am

141
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Designing a database

se
id
br

As
When we want to design a database, first we
am

y
op
&
need to think carefully about the data that we
-C

s
want to collect. This helps us to identify the records,

C
es
fields and attributes that will make up the database.

w
y

Pr
op

ie
When designing a database, we need to think

ev
ity
C

about these questions:

R
rs
w

• What records, fields and attributes do we need?


ie

ve

t-
ev

en
ni
• How many records will there be? How many
R

fields will there be?

m
ge

ss
• How will the records and fields be arranged into rows and columns?

se
id

• What will the titles of the columns be?


br

As
am

• What data types will be used in each of the fields?

y
op
&
-C

• Will the database be digital or on paper?


s

C
es

You can design a database by making notes and sketches to

w
y

Pr
op

ie
collect your ideas.

ev
ity
C

R
rs
w

Unplugged activity 1
ie

ve

t-
ev

en
ni

You will need: coloured pens and a large piece of paper


R

m
ge

ss

Work in a group to design a


se

database that provides data about


id
br

different holiday destinations.


As
am

Your database should include y


op
&

five records.
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

142
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.3 Creating a database

en
ni
U

m
ge

ss
Continued

se
id
br
Use the questions on the previous

As
am
page to help you. I think two

y
op
&
Write and sketch your ideas of the fields should be
-C

C
currency and language because

es
on a big piece of paper.

w
y

this is important data to

Pr
op

ie
know if you are visiting

ev
ity
C

a country!

R
rs
w
ie

ve

t-
ev

en
ni
R

m
Creating a database
ge

ss
se
id

Once you have designed a database, you can create it.


br

As
am

Databases can be created on paper or digitally.

y
op
&
-C

C
es

Creating paper databases

w
y

Pr
op

ie
ev
Paper databases can be created very simply by making paper records.
ity
C

R
rs
w

A paper record contains data for a number of different fields. Look at


ie

ve

t-
the paper record below. It shows data for a character called Splashy.
ev

en
ni
R

m
ge

ss

This particular record


se
id

is used in a card game where


br

As

you have to try and beat your


am

opponent by picking the field with y


op
&

the best score. Have you ever played


-C

C
es

one of these games, like


w
y

Pr

Pokémon, or Top Trumps?


op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

143
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Activity 2

se
id
br

As
You will need: a desktop computer, laptop or tablet with access
am

y
to the internet, a pen and paper, Worksheet 2.6 and your

op
&
-C

database design ideas from Unplugged activity 1

C
es

w
y

You are going to create a simple paper

Pr
op

ie
database to organise data about different

ev
ity
C

holiday destinations. Country name: Oman

R
rs
w
ie

ve
Create a paper record for each holiday destination.

t-
Area: 309 500 km²
ev

en
Use your ideas from Unplugged activity 1 and the
ni

Population: 4 576 298


R

record card template to help you.

m
Language: Arabic
ge

ss
Use the internet to help you find information to add to
Flag:

se
id

your paper database.


br

As
Currency: Omani rial
Your record cards might look something like this:
am

y
op
&
-C

C
es

Creating digital databases

w
y

Pr
op

ie
ev
ity
C

You can create a digital database

R
rs
w

using specific software.


ie

ve

t-
For example, you can use:
ev

en
ni
R

• spreadsheet software, such as


m
ge

ss

Excel or Google Sheets


se
id

• database software, such as


br

As

Microsoft Access or Oracle.


am

These programs are designed y


op
&

specifically for creating databases.


-C

C
es

You only need to know how to


w
y

Pr
op

create databases using


ie
ev

spreadsheet software.
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

144
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.3 Creating a database

en
ni
U

m
ge

ss
Practical task 2

se
id
br

As
am
You will need: a desktop computer, laptop or tablet, spreadsheet

y
op
&
software such as Excel or Google Sheets, your ideas from Unplugged
-C

C
activity 1, your paper database from Activity 2 or source file 2.5_countries

es

w
y

Pr
op

ie
You are now going to create a digital database. You can use the data

ev
ity
C

you recorded in Activity 2, or you can use source file 2.5_countries.

R
rs
w

To create a simple database:


ie

ve

t-
ev

1 Open your spreadsheet or database software.

en
ni
R

2 Create headings for each column of your database. The headings for

m
ge

ss
each column should match your field titles from Unplugged activity 1,

se
Activity 2 or source file 2.5_countries. For example:
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

3 Type the data for each record into the database.


t-
ev

en
ni

4 Now format your cells according to the data type in them,


R

to ensure that all the data is displayed correctly (see Practical task 1).
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

145
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Searching a database

se
id
br

As
We already know that databases are made up of data
am

y
op
&
that is organised.
-C

C
Searching organised data in a database is much quicker and more

es

w
y

efficient than trying to search for data by reading through lots of

Pr
op

ie
separate record cards!

ev
ity
C

There are different ways of searching for specific data in a database.

R
rs
w

One way is to apply a filter, which allows you to hide data that does
ie

ve

t-
ev

not meet your criteria, so the database only shows data you want to

en
ni

see. You may have learnt about filters in previous years.


R

m
ge

ss
Another way is to search for data that matches a single keyword,

se
which you might have done previously.
id
br

As
One other way to search data is to use phrase searching.
am

y
This means searching for data that matches a series of words.

op
&
-C

For example, your school probably has a database about all the

C
es

learners who attend the school. If a member of staff needs to contact

w
y

Pr
op

ie
your parent or carer because you are unwell, they can do a phrase

ev
ity
C

search of the database, using your full name as the search criteria.

R
rs

A single keyword search (your first name) would not work here, as
w
ie

ve

t-
there might be more than one learner with the same first name as you.
ev

en
ni

The phrase search will bring up all records that match the criteria
R

(your full name). That record will include a contact number for
ge

ss

your family.
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

146
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.3 Creating a database

en
ni
U

m
ge

ss
Practical task 3

se
id
br

As
am
You will need: a desktop computer,

y
op
&
laptop or tablet, spreadsheet
-C

C
software such as Excel or Google

es

w
Sheets and source file
y

Pr
op

ie
2.6_countries_database

ev
ity
C

R
rs
You are now going to use phrase
w
ie

ve

t-
searching to find specific phrases
ev

en
ni
in a database.
R

m
1 Open source file
ge

ss
2.6_countries_database.

se
id

2 To search for a phrase, find the


br

search tool in your software.


As
am

y
In Excel, this is found in the

op
&
-C

Home menu, under Find & Select.


s

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

3 Click ‘Find’. Type the phrase ‘Malayan tiger’ and press Enter.
ev

en
ni
R

4 The phrase you have searched for will be highlighted in the database.
U

m
ge

ss
se
id
br

As
am

147
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Continued

se
id
br

As
Use phrase searching to find the answers to these questions:
am

y
op
&
• Which country uses pound sterling as currency?
-C

C
• Which three countries have a lion as their national animal?

es

w
y

• Which country has a population of 51440000?

Pr
op

ie
• Which country has the federal eagle as their national animal?

ev
ity
C

R
rs
w
ie

ve

t-
ev

Question

en
ni
R

m
ge

ss
4 How do you search a database for a specific phrase?

se
id
br

As
Look what I can do!
am

y
op
&
I can design a single table database.
-C

C
es

I can create a single table database.

w
y

Pr
op

ie
I can search for information in a database using a specific phrase.

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

148
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.4 How is data used?

en
ni
U

m
ge

ss
2.4 How is data used?

se
id
br

As
am

y
We are going to:

op
&
-C

C
• explore how data can be used to solve problems

es

w
y

Pr
op

• look at how data can be used to solve problems

ie
ev
in healthcare, manufacturing and retail.

ity
C

R
rs
w

healthcare retail
ie

ve

t-
manufacturing trends
ev

en
ni

Getting started
R

m
ge

ss
What do you already know?

se
id

• How to use a database to answer a single question.


br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

149
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Look at this database. It shows sales data for a café over one week.

op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

Work with a partner to answer the questions.

ie
ev
ity
C

1 What type of data is shown in column C?

R
rs
w

2 What function would you use to calculate the average spend


ie

ve

t-
per customer?
ev

en
ni

3 What would happen to the average spend if the café owner


R

changed any of the numbers in the spreadsheet?


ge

ss

4 What other useful data could the owner collect and how could
se
id

they format it? (Hint: Think about date, staff costs)


br

As
am

y
op
&
-C

Using data to solve problems


es

w
y

Pr
op

ie

We can use sets of organised data to help solve a range of problems.


ev
ity
C

By looking at the data, we can identify patterns, for example


-R
rs
w

how often something occurs. Patterns in data are


ie

ve

sometimes called trends.


ev

en
ni
R

m
ge

ss
se
id
br

As
am

150
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.4 How is data used?

en
ni
U

m
ge

ss
For example:

se
id
br
Problem How data can help

As
am

y
Farmers can't harvest in the rain Farmers can look at weather trends to see

op
&
-C

because the crops are wet and when it is likely to rain so they know the

C
es
may go mouldy. best time to harvest crops.

w
y

Pr
op

ie
Supermarkets might run out of Supermarket owners could look at sales

ev
ity
C

popular products and customers trends to find out what the most popular

R
rs
w

might shop somewhere else. products were during a particular month to


ie

ve

t-
make sure they stock the same items again.
ev

en
ni
R

A teacher has noticed that not The school could look at data showing

m
ge

ss
everyone is finishing their school which meals are eaten and which are

se
id

lunches, and some children left, so that they only provide meals that
br

As
are hungry. students enjoy.
am

y
op
&
-C

C
I wonder
Solving problems in retail,
es

w
y

what the data can


Pr
op

ie
manufacturing and healthcare tell you about me and

ev
ity
C

how I am doing
R
rs
w

Sets of organised data are very useful for solving in school?


ie

ve

t-
problems in retail, healthcare and manufacturing.
ev

en
ni

Retail means selling items, for example clothes, cars, food or games.
R

m
ge

ss

Healthcare means an organised way of looking after the medical


se

needs of individuals or a community.


id
br

As

Manufacturing means making lots of products using machinery.


am

y
op
&
-C

Using data to solve problems in retail


es

w
y

Pr
op

ie

Data can be used in retail to solve problems such as:


ev
ity
C

• a shop not selling enough


-R
rs
w
ie

ve

• a shop not making enough money


t
ev

en
ni

• a shop which doesn’t have many customers.


R

m
ge

ss
se
id
br

As
am

151
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
For example, the manager of a shop can look at the

se
id
monthly sales and see which products are selling well

br

As
and which are not. They might choose not to stock the
am

y
least popular items again, or to stock smaller amounts

op
&
of them. The price of items that have been in stock for
-C

C
a while but are not selling might be reduced.

es

w
y

Pr
op

ie
ev
ity
Question
C

R
rs
w
ie

ve

t-
1 Describe two ways that a shop could use data to
ev

en
ni

increase sales.
R

m
ge

ss
Activity 1

se
id
br

You will need: a desktop computer, laptop or tablet, word processing software,
As
am

spreadsheet software, a pen and paper and source file 2.7_cars_in_stock

y
op
&
-C

The owner of a car showroom is running out of space! He might need to reduce the

C
es

amount of cars he has by removing ones that do not sell well to make space for ones

w
y

Pr
op

ie
that do sell well. He has asked you to look at some sales data to help choose which

ev
ity
C

ones he removes.

R
rs
w

Look at the data in source file 2.7_cars_in_stock. It lists all the cars that the
ie

ve

t-
showroom has bought second-hand and how much each car has sold for.
ev

en
ni
R

The owner has asked you to investigate the data to see if there are any trends,
U

and to make any suggestions about what cars they should have in the showroom.
ge

ss
se
id

Use the data to answer these questions:


br

As

1 Which kinds of car are not selling second-hand?


am

y
op
&

2 Which cars make the most profit when sold second-hand?


-C

Note down the answers to these questions on paper.


es

w
y

Pr

Create a short digital report for the owner of


op

ie

the showroom. Your report should include:


ev
ity
C

-R
rs
w

• their questions
ie

ve

• your answers
t
ev

en
ni
R

• your recommendations for how the business


U

could improve sales and increase profit.


ge

ss
se
id
br

As
am

152
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.4 How is data used?

en
ni
U

m
ge

ss
Using data to solve problems in healthcare

se
id
br

As
Data can be used in healthcare to make improvements such as:
am

y
op
&
• identifying the most successful treatments for particular illnesses
-C

C
• diagnosing new types of illness

es

w
y

Pr
• reducing how long people have to wait for treatment
op

ie
ev
ity
C

• identifying patterns in illnesses

R
rs
w

• saving more lives.


ie

ve

t-
ev

For example, data from medical trials can help scientists find out which

en
ni
R

treatments are the most successful at curing illnesses such as an infection.


U

m
Data about patients’ lifestyle and symptoms over time can help doctors
ge

ss
find patterns. When lots of people have similar symptoms but doctors do

se
id

not know what the illness is, recording data about the symptoms could
br

As
help medics find a new diagnosis, or identify a new illness.
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

153
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Unplugged activity 2

se
id
br

As
You will need: a pen and paper
am

y
op
&
Doctors have found a new disease, but they don't know which
-C

C
medicine is best to treat it. They have decided to use two types of

es

w
y

medicine to see which one works best.

Pr
op

ie
A doctor assessed each patient before treatment and gave them a

ev
ity
C

wellness score out of 10 (where 10 is very well and 1 is very unwell).

R
rs
w
ie

ve

t-
Two months after treatment, patients had another assessment and
ev

en
ni
received another wellness score.
R

m
Look at the data with a partner.
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

Which treatment would you recommend the hospital uses to help treat
t
ev

en

the disease in the future? Write down any ideas you have.
ni
R

Explain your recommendations to a different pair of learners.


ge

ss
se
id
br

As
am

154
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.4 How is data used?

en
ni
U

m
ge

ss
Using data to solve problems in manufacturing

se
id
br

As
Data can be used in manufacturing (making goods in a factory)
am

y
to solve problems such as:

op
&
-C

s
• products not being good quality or not lasting very long

C
es

w
y

• low sales

Pr
op

ie
• the number of accidents happening

ev
ity
C

during the manufacturing process.

R
rs
w
ie

ve

t-
For example, a manufacturing company
ev

en
ni

could keep data about all the accidents that


R

m
happen during the manufacturing process.
ge

ss
By analysing this data, they could find

se
id

ways to keep their staff safe and reduce


br

costs. When accidents happen, businesses


As
am

often have to pay money to the injured staff.

y
op
&
Staff being off work also costs the business
-C

C
money because they have to pay sick pay and
es

w
y

hire someone else to do the job.


Pr
op

ie
ev
ity
C

Activity 3
R
rs
w
ie

ve

t-
ev

You will need: a desktop computer, laptop or tablet, presentation software


en
ni
R

such as PowerPoint or Prezi and source file 2.8_accident_data


U

m
ge

ss

Look at source file 2.8_accident_data. It shows data a manufacturing


se
id

company has collected about accidents that happened during the


br

As

manufacturing process over one month.


am

y
op
&

Work in a group. Review the data. Decide how the factory owner could use
-C

this data to solve problems. Come up with at least three ways that the data
es

could be helpful.
w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

155
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Continued

se
id
br
Present your findings as a digital presentation.

As
am

y
How am I doing?

op
&
-C

C
Work individually. Using a scale of 1 to 5, where 1 is the least confident and 5 is the

es

w
most confident, score yourself on these points:
y

Pr
op

ie
• I could identify ways the safety data could be used to solve problems.

ev
ity
C

R
• I could explain ways that the safety data could be used to solve problems.
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
How did you work as a team?

se
id

What roles did each person have in the group?


br

As
am

If you worked as a team again, what would you change?

y
op
&
-C

C
es

w
y

Pr
op

ie
Unplugged activity 4

ev
ity
C

R
rs
w

You will need: a pen, coloured pencils and paper


ie

ve

t-
ev

en

Pick one way in which data can be used to solve problems in either retail,
ni
R

manufacturing or healthcare.
m
ge

ss

Part A
se
id

Using the information in the Learner's Book, research how data is


br

As
am

used to solve problems within your chosen area. Note down your findings. y
op
&
-C

Part B
s

C
es

Use what you find out to create a paper leaflet explaining the advantages
w
y

Pr
op

ie

of using data to solve problems in your chosen area.


ev
ity
C

-R
rs
w
ie

ve

Look what I can do!


ev

en
ni
R

I can explain how data is used to solve problems in healthcare,


ge

ss

retail and manufacturing.


se
id
br

As
am

156
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2.4 How is data used?

en
ni
U

m
ge

ss
Project

se
id
br
A local children’s clothes store has recently opened, and the owner has asked for

As
am
your help. She doesn’t know what to sell!

y
op
&
-C

She wants to know what kinds of clothes local children prefer, so she can sell them.

C
es
She particularly wants to know if there are any data trends in children of a certain

w
y

Pr
height or age. The owner has asked you to collect and analyse data about the
op

ie
preferences of people in your class.

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

Work in a small group. You will need to consider the following things:

w
y

Pr
op

ie
• How could you use data to help the

ev
ity
C

manager solve her problem?

R
rs
w

I wonder if
ie

• What data do you want to collect?


ve

t-
slightly older children
ev

en
ni

• What computing tools will you need?


prefer different
R

• How will you collect the data? colours?


ge

ss

• What type of form will you use?


se
id
br

As

• What kinds of questions will you ask?


am

• Who will you ask?


y
op
&
-C

• How will you design and create


es

I think the
w

a spreadsheet or database to
y

Pr
op

ie

organise the data? manager would like to


ev
ity
C

• Can you see any patterns in


know how tall an average
-R
rs
w

your data? If so, what are they?


10 year old is so she can
ie

ve

position clothes at the


t
ev

en

• What recommendations
ni

right height.
R

can you make to the manager to


m
ge

ss

help her solve her problem?


se
id
br

As
am

157
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
2 Managing data

en
ni
U

m
ge

ss
Check your progress

se
id
br
1 What is a statistical investigation?

As
am

y
2 What is continuous data?

op
&
-C

s
3 What does a data logger do?

C
es

w
y

4 What type of question would you use to collect continuous data

Pr
op

ie
using a form?

ev
ity
C

a Multiple choice b Open text c Ranking

R
rs
w
ie

ve

t-
5 What operator do you use in a spreadsheet for division?
ev

en
ni

6 What function do you use in a spreadsheet to calculate a mean value?


R

m
7 Will this formula work in a spreadsheet? How do you know?
ge

ss
se
id

SUM(A2:A5)
br

As
8 How can you select data to use in a spreadsheet formula?
am

y
Give two ways.

op
&
-C

What is a data attribute in a database?

C
9
es

w
y

10 Describe how to use phrase searching to find information in a database.


Pr
op

ie
ev
11 Describe one way that analysing data can help in the healthcare industry.
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

158
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
Networks and

U
3

m
ge

ss
se
id
br

As
digital communication
am

y
op
&
-C

C
es

w
y

Pr
op

ie
3.1 Storing and transferring

ev
ity
C

R
rs
w

data on a network
ie

ve

t-
ev

en
ni
R

m
ge

ss
We are going to:

se
id

• understand what kinds of data can be stored on a server


br

As
am

• explore how data can be transferred wirelessly through wi-fi and

y
op
&
cellular networks
-C

C
es

• discuss the effect of bandwidth on the performance of a network

w
y

Pr
op

ie
• explore what happens if there are too many devices connected to a network.

ev
ity
C

R
rs
w
ie

ve

t-
antivirus software packet
ev

en
ni

bandwidth radio waves server


R

encryption server farm


ge

ss

GPS (Global Positioning System) streaming


se
id

intranet wi-fi
br

As

malware wireless
am

network overload y
op
&
-C

C
es

Getting started
y

Pr
op

ie

What do you already know?


ev
ity
C

-R

• Servers are used to store data, including websites.


rs
w
ie

ve

• A range of devices can be connected to a network.


t
ev

en
ni

• Data is sent via packets over a network.


R

• Data can be sent using a cellular network.


ge

ss
se
id
br

As
am

159
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3 Networks and digital communication

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
You have already learnt about the role of a server.

op
&
-C

The photo shows a server in a server farm,

C
es
which is a group of connected servers.

w
y

Pr
op

ie
With a partner, discuss the following:

ev
ity
C

1 What other devices are connected to a server?

R
rs
w

2 What can you store on a server?


ie

ve

t-
ev

3 Why is a server used as part of a network?

en
ni
R

m
ge

ss
Storing data on a server

se
id
br

As
Remember, a server is a networked device that ‘serves’ data to
am

y
op
&
other devices on the network. Other devices on the network can ask
-C

the server for data. Having a server means you don’t need to store

C
es

everything on your device. For example:

w
y

Pr
op

ie
• an email server holds all of your emails, meaning they

ev
ity
C

don’t need to be stored on your computer

R
rs
w

• a web server hosts websites that other devices


ie

ve

t-
ev

can then access. You access all


en
ni

websites through a server.


R

m
ge

ss

email
se
id

accounts
br

As
am

y
op
&
-C

video and web pages


es

audio files for for a website


w
y

streaming
Pr
op

ie

Data on
ev
ity
C

a server
-R
rs
w
ie

ve

t
ev

en
ni
R

documents messaging
ge

ss

services
se
id
br

As
am

160
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3.1 Storing and transferring data on a network

en
ni
U

m
ge

ss
I’d like I’d like

se
id
my emails, to download this

br

As
please!
am song, please!

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
You can also save files to a server. These files

ev
ity
C

can then be accessed from any other device

R
rs
w

that is connected to the same network.


ie

ve

t-
For example, if you saved a document to
ev

en
ni

Google Drive or OneDrive, anyone on the


R

same network (in this case, anyone with


ge

ss

an internet connection!) could access


se
id

the document if they are sent a link.


br

As
am

y
op
&

Streaming services
-C

C
es

Have you ever streamed a film on your


y

Pr
op

ie

TV or some music onto your phone?


ev
ity
C

A specific server in a network can be


-R
rs
w

used for streaming large files such as films


ie

ve

or music. Streaming is where a video or sound file is played over an


t
ev

en
ni

internet connection. The file is not stored on the device that plays it.
R

This type of server needs a large storage capacity as high-quality


ge

ss

media takes up a lot of space. You might have learnt about storage
se
id

capacity previously.
br

As
am

161
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3 Networks and digital communication

en
ni
U

m
ge

ss
Did you know?

se
id
Netflix users across the world spend around 164 million

br

As
hours per day watching videos! That is around 1 hour
am

y
op
&
11 minutes per registered user. Imagine how many
-C

s
hours it would be if we added up every streaming

C
es
service’s use time!

w
y

Pr
op

ie
ev
ity
C

Files on a computer can be measured in bytes, megabytes, gigabytes

R
rs
w

and other larger sizes. For example, a typical high definition (HD) film
ie

ve

t-
might use between two and four gigabytes of storage space,
ev

en
ni

whereas a presentation might only use 10 megabytes of space.


R

m
ge

ss
Messaging services

se
id
br

As
am

Using digital devices allows users to send messages to other users.

y
op
&
This is known as direct messaging.
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

Sofia
s

C
es

Hey Arun.
w
y

Pr

Have you done our


op

ie

computing homework?
ev
ity

Sofia
C

Arun
-R
rs

Hey Arun.
w

Have you done our Yes.


ie

ve

computing homework? Do you need help???


t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

162
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3.1 Storing and transferring data on a network

en
ni
U

m
ge

ss
Large companies might also have a

se
id
dedicated specific server that allows

br

As
direct messaging between employees
am

y
or between customers and employees.

op
&
This is a quick way of communicating
-C

C
as people do not have to keep checking

es

w
y

their emails.

Pr
op

ie
ev
A private network that is only available

ity
C

within an organisation is known as an

R
rs
w

intranet. A school will have an intranet


ie

ve

t-
ev

so that the staff in the school can easily

en
ni
R

share messages.
U

m
ge

ss
se
id

Questions
br

As
am

y
1 Why might people use streaming services

op
&
-C

rather than storing a file on a device?


s

C
es

2 What types of data could you retrieve from a server

w
y

Pr
op

during your school work?

ie
ev
ity
C

R
Unplugged activity 1
rs
w
ie

ve

t-
ev

You will need: some pens and a large piece of paper


en
ni
R

Consider the server(s) in your school, and the services


ge

ss

it supplies to other devices in the school network.


se
id
br

Work in a small group to draw your school network.


As
am

This is known as a network map. y


op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

163
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3 Networks and digital communication

en
ni
U

m
ge

ss
Continued

se
id
Here is an example:

br

As
am

y
op
&
Classroom 1 Classroom 2 Classroom 3 Classroom 4
-C

s
Five laptops and a 25 tablets and a teacher’s A teacher’s A teacher’s

C
es
teacher’s computer. The computer. The tablets are computer computer

w
y

laptops are connected to connected to the internet server,

Pr
op

ie
the internet server and and the teacher’s computer is

ev
the document server. connected to an email server.

ity
C

R
rs
w
ie

ve

t-
ev

en
Servers
ni
R

Our school servers store our school

m
website and learners’ work. There is
ge

ss
an email server for our school emails.

se
id
br

As
am

y
School reception Head teacher’s office Staff room

op
&
-C

Five computers and Two computers and Eight laptops and


s

C
a printer a printer a printer
es

w
y

Pr
op

ie
Consider the following:

ev
ity
C

• Do you have a school website? If so, you might need a web server

R
rs
w

(a server for hosting websites).


ie

ve

t-
ev

• How does your school communicate with your parents? Email?


en
ni

Messaging? Do you need an email server?


R

m
ge

ss

• How many rooms are in your school and how many devices in them
se
id

are connected to the server?


br

As

• What are the connections between the server and the devices?
am

(Every device needs to be connected to the network somehow.)


y
op
&
-C

For two of the rooms, explain why the devices are connected to
C
es

the server. What service does the server provide?


w
y

Pr
op

ie

Don’t forget, your map can cover your whole school, so think about all the
ev
ity
C

rooms in your school, including any offices, the canteen and the library.
-R
rs
w

It might be a good idea if each member of your group focuses on


ie

ve

a specific area of the school.


t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

164
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3.1 Storing and transferring data on a network

en
ni
U

m
ge

ss
Transferring data

se
id
br

As
We can send data between devices using two different kinds
am

y
op
&
of connection: wireless (without using wires) or wired.
-C

C
Data can be transferred using wires via Ethernet cables like

es

w
y

this one. You may have one connecting your router to a device

Pr
op

ie
in your home network.

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
Data can also be sent wirelessly. One way that data can be sent
es

w
y

wirelessly is by radio waves. A radio wave is a form of energy that


Pr
op

ie
can be used to send data such as text or sounds from one place to

ev
ity
C

another. Radio waves are transmitted through antennas like those

R
rs
w

shown in the image below.


ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

165
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3 Networks and digital communication

en
ni
U

m
ge

ss
Cellular networks

se
id
br

As
A cellular network is a massive network of communication towers
am

y
that cover almost the whole world. A mobile phone works by

op
&
-C

connecting to the cellular network.

C
es

w
y

Pr
op

ie
Did you know?

ev
ity
C

Over 85% of the world’s population have a mobile phone.

R
rs
w

That’s over 7 billion people!


ie

ve

t-
ev

en
ni
R

m
When there is no internet connection available, a mobile
ge

ss
phone will connect to the nearest cell tower and use this

se
id

tower to send and receive all kinds of data.


br

As
Imagine you have gone out of the house and taken your
am

y
digital device with you. When you use a digital device like

op
&
-C

a smartphone when you are out, the device is constantly


s

C
es

in touch with the nearest cell tower via radio waves.

w
y

Pr

This constant connection enables the device to send and


op

ie
ev
receive messages and emails, browse the internet, stream
ity
C

music and make phone calls.


R
rs
w
ie

ve

t-
Phones can also use a combination of cellular internet
ev

en
ni

and GPS to enable map apps to tell us where to go – this


R

is known as satellite navigation (or satnav). GPS (Global


ge

ss

Positioning System) is a network of satellites that phones


se
id

can use to track their location. It can help us when we are


br

lost or need directions.


As
am

y
op
&
-C

Wi-fi
s

C
es

w
y

Pr
op

ie

We also use radio waves in our homes. Most homes have


ev
ity
C

access to the internet by using wi-fi (the technology that allows


-R
rs

digital devices to communicate without wires) through a router.


w
ie

ve

A router is a networking device that allows users to access the


t
ev

en
ni

internet from an internet service provider. Any digital device in


R

the home sends and receives data to the router either using an
m
ge

ss

Ethernet cable or wirelessly using radio waves.


se
id
br

As
am

166
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3.1 Storing and transferring data on a network

en
ni
U

m
ge

ss
When data is sent over a computer network, it is

se
id
not sent as a whole file. Instead, the data is split

br

As
up into pieces, each known as a packet, and then
am

y
sent. If someone wanted to stop the data from

op
&
reaching its destination, they could steal some of the
-C

C
packets. If the packets do not have any encryption

es

w
y

on them, then someone can try to put the pieces

Pr
op

ie
back together. If the data packets have encryption on

ev
ity
C

them, then this is very difficult to do.

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
Unplugged activity 2

se
id
br

As
You will need: a pen and paper
am

y
op
&
Work with a partner to list as many digital
-C

C
es

devices as possible that you have at home.

w
y

Pr
op

Decide how each of the devices you have

ie
ev
listed can transfer data.
ity
C

R
rs
w

For each device, answer the


ie

ve

t-
following questions:
ev

en
ni

• Can it transfer data with a network cable?


R

m
ge

• Can it transfer data wirelessly?


ss

With wi-fi? With a cellular network? Both?


se
id
br

As
am

How am I doing? y
op
&
-C

Using smiley faces, where a sad face is not very confident, a neutral
s

C
es

face is quite confident, and a happy face is very confident,


w
y

Pr
op

answer each of questions below:


ie
ev
ity
C

• describe the range of digital content that can be stored on a server.


-R
rs
w

• explain how digital devices can transfer data wirelessly.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

167
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3 Networks and digital communication

en
ni
U

m
ge

ss
The effect of bandwidth on a network

se
id
br

As
Bandwidth is the maximum amount of data that can be transmitted
am

y
op
&
between two points in a network in a specific amount of time.
-C

C
The smaller your bandwidth is, the longer it takes to download

es

w
y

a file from the internet or for a video to load so you can stream it.

Pr
op

ie
The larger your bandwidth is, the quicker the network performs.

ev
ity
C

R
rs
w
ie

ve

t-
I have great
ev

en
ni

bandwidth, so it only
R

m
takes a few seconds to
ge

ss
download files!

se
id
br

As You are
am

y
lucky!

op
&
-C

C
es

w
y

Pr
op

ie
Bandwidth is a bit like a straw. If you have a narrow straw, you won’t be

ev
ity
C

able to drink as quickly as you would with a really wide straw. It would

R
rs
w

take someone with a wide straw a lot less time to drink the same amount
ie

ve

t-
as someone with the thin straw!
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

168
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3.1 Storing and transferring data on a network

en
ni
U

m
ge

ss
Activity 3

se
id
br

As
You will need: a desktop computer, laptop or tablet with access
am

y
to the internet and source file 3.1_speed_test_website

op
&
-C

C
es
Have you ever noticed that when you are using a digital device it seems

w
y

to take a long time to open a web page? You can check what your

Pr
op

ie
current network speed is using certain websites.

ev
ity
C

Go to the website your teacher will show you to find out the speed of

R
rs
w
ie

the connection you are using.


ve

t-
ev

en
ni

When you have the results, share them with your teacher.
R

m
With a partner, consider the following discussion points:
ge

ss
• Do you think the speed will change if you do the test at a different

se
id
br

time of day?
As
am

y
• Do you think the speed will change if you do the test on a different device?

op
&
-C

C
es

w
y

The number of devices using the network


Pr
op

ie
can also affect the speed of data transfer.

ev
ity
C

Even if you have lots of bandwidth,

R
rs
w

downloading and uploading data


ie

ve

t-
may still be slow.
ev

en
ni

Does your favourite TV show pause


R

when you watch it online?


ge

ss
se
id

This often happens when other people


br

are downloading or streaming content,


As
am

which uses a lot of bandwidth. Your home y


op
&

internet connection has a limited amount


-C

of bandwidth that has to be shared out


es

w
y

among all devices on the network. So if


Pr
op

ie

other people are connected to the internet


ev
ity
C

and are trying to stream or download a


-R
rs
w

file, the bandwidth is divided between


ie

ve

all active devices. It is possible to pay for


t
ev

en
ni

more bandwidth if the bandwidth needs to


R

be shared between lots of active devices.


ge

ss

However, there is still a limit on the amount


se
id

of devices that can be connected at once.


br

As
am

169
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3 Networks and digital communication

en
ni
U

m
ge

ss
Even browsing the internet, which does not require a lot of bandwidth,

se
id
can affect speed if there are lots of devices doing it. This will not

br

As
just include digital devices, such as a mobile phone, but other
am

y
internet-enabled devices such as a smart TV, smart lights, smart plugs,

op
&
or other smart devices. Too many devices can lead to network overload.
-C

C
es
Network overload happens when too many devices try to access

w
y

Pr
data at the same time. When a network is overloaded, the network
op

ie
ev
stops working properly: data moves extremely slowly, pictures can

ity
C

get stuck when they are loading and error messages might appear.

R
rs
w

If some devices are demanding a lot of bandwidth for streaming or


ie

ve

t-
ev

downloading, a network overload can happen with even just a few

en
ni
R

devices connected! Look at this example of an overloaded network.


U

m
ge

ss
se
id
br

103%

As
am

y
op
&
Streaming Three smart bulbs: Downloading Smart Online Network
-C

a movie: 8% lots of fridge: video overload!

C
es

25% of the photos: 20% 10% games: 40%

w
y

bandwidth
Pr
op

ie
ev
ity
C

If the person watching the movie on this network stopped, then they

R
rs
w

would have enough bandwidth for everything else, though it might


ie

ve

t-
be slow. They could also turn off the smart fridge, but their food
ev

en
ni

might go rotten!
R

m
ge

ss
se
id

78%
br

As
am

y
op
&

Three smart bulbs: Downloading Smart Online video Network


-C

8% of the bandwidth lots of photos: 20% fridge: 10% games: 40% can cope
s

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

170
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3.1 Storing and transferring data on a network

en
ni
U

m
ge

ss
Three devices

se
id
br
streaming a movie might overload

As
am
a network, but 40 lightbulbs and

y
op
&
two laptops checking emails
-C

C
could do too!

es

w
y

Pr
op

Why?

ie
ev
ity
C

Because 40

R
rs
w

lightbulbs might use as


ie

ve

t-
ev

much bandwidth as

en
ni
R

three movies!

m
ge

ss
se
id

You could think of bandwidth as a pie. The more people


br

the pie has to feed, the smaller your slice will be.
As
am

y
The more people using bandwidth, the smaller each

op
&
-C

person's piece of bandwidth will be. If there are too many


s

C
es

people, some people will not get any bandwidth at all!

w
y

Pr
op

ie
Or you could think of bandwidth as a road. The more

ev
ity
C

cars on a road, the more time it takes to travel to where

R
rs
w

you need to be because the cars go slowly. There is no


ie

ve

t-
problem with the road – there are just lots of cars!
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

171
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3 Networks and digital communication

en
ni
U

m
ge

ss
Activity 4

se
id
br

As
You will need: a desktop computer, laptop or tablet with access to the
am

y
internet, a pen and paper

op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

Research and list as many devices as possible that could be connected to

w
y

Pr
op

ie
the internet in a home. Think about kitchen and bathroom appliances

ev
ity

as well as devices you use for fun!


C

R
rs
w

Compare your list with a partner’s.


ie

ve

t-
ev

Discuss with your partner which devices are the most important.
en
ni
R

The most important devices need to be able to connect to the wi-fi over
m
ge

ss

the other devices. Which devices could be stopped from connecting in


se

order to prevent a network overload?


id
br

As

Would your list change based on the day of the week? For example,
am

would you have different priorities on a Wednesday and a Saturday?


y
op
&
-C

C
es

w
y

Pr

Stay safe!
op

ie
ev
ity
C

Sometimes when a device is infected by malware (software designed to disrupt or


-R
rs

harm a computer system), it can use up a great deal of your bandwidth without you
w
ie

ve

realising. It is always a good idea to use antivirus software (software that identifies,
t
ev

en
ni

removes and prevents malware) on a regular basis to check for any malware that
R

might have been installed on your devices, and to keep the antivirus software up
m
ge

ss

to date.
se
id
br

As
am

172
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3.1 Storing and transferring data on a network

en
ni
U

m
ge

ss
Questions

se
id
br

As
3 Explain what bandwidth is.
am

y
4 Explain what causes network overload.

op
&
-C

s
5 What steps could you take to prevent a network overload?

C
es

w
y

Pr
op

ie
Activity 5

ev
ity
C

R
rs
w

You will need: a desktop computer, laptop or


ie

ve

t-
tablet with word processing software
ev

en
ni
R

m
Your neighbours have asked you to help with
ge

ss
a network problem. They are a family of four

se
id

who are having problems with streaming in


br

As
their house, especially in the evening and at
am

y
the weekend.

op
&
-C

They have three smart TVs, a laptop, two


s

C
es

games consoles, five tablets, two e-readers,

w
y

Pr
op

a smart fridge, 20 smart lightbulbs and

ie
ev
27 smart plugs. They also have a
ity
C

wi-fi-enabled alarm system and a smart doorbell.


R
rs
w

One of the family members streams her favourite


ie

ve

t-
ev

TV show for two hours a day.


en
ni
R

Create a short report that gives them some advice on how


ge

ss

to solve the issues.


se
id
br

As
am

Look what I can do!


y
op
&
-C

I can describe the different digital content that a server can store.
es

w
y

I can explain how data is transferred wirelessly.


Pr
op

ie
ev

I can discuss how bandwidth impacts the performance of a network.


ity
C

-R
rs
w

I can explain what network overload is.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

173
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3 Networks and digital communication

en
ni
U

m
ge

ss
3.2 Securing data

se
id
br

As
am

y
We are going to:

op
&
-C

C
• explore why it is important to keep data secure when it is sent

es

w
y

to another device or person

Pr
op

ie
ev
• explore how a user’s identity can be confirmed

ity
C

R
rs
w

• discuss the range of methods that can be used for user authentication.
ie

ve

t-
ev

en
ni
R

m
ge

ss
authentication secure

se
id

facial recognition spam


br

As
hack transmission
am

y
password username

op
&
phishing
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr

Getting started
op

ie
ev
ity
C

What do you already know?


-R
rs
w

• Where encryption is used in a digital system.


ie

ve

t
ev

en

• Why encryption is used in a digital system.


ni
R

• How ciphers are used to keep information secret.


ge

ss
se
id
br

As
am

174
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3.2 Securing data

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Decode the following message: Julius Caesar

op
&
-C

used a similar cipher

s
Mywzedsxq sc wi

C
es
pkfyebsdo celtomd. so his military plans could

w
y

Pr
op

not be read by

ie
Use the Caesar cipher, which is

ev
the enemy.

ity
C

given below.

R
rs
w

To decode the message, you will need


ie

ve

t-
ev

to use a right shift by 10 letters.

en
ni
R

m
ge

ss
Alphabet A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

se
id

+10 shift Q R S T U V W X Y Z A B C D E F G H I J K L M N O P
br

As
am

y
Discuss with a partner why keeping data secure is important.

op
&
-C

C
Feed back your reasons to the rest of the class.
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w

Keeping data secure


ie

ve

t-
ev

en
ni

Every day, trillions of packets of data are sent over the internet.
R

The sending process – the transmission – needs to be secure


ge

ss

because the data being sent is often private. Secure means


se
id

safe and accessible only by those with permission to access it.


br

As

Data that needs to be kept secure includes:


am

y
op
&

• personal information, like your address or date of birth


-C

C
es

• financial information, such as bank details


w
y

Pr
op

• health information, like test results.


ie
ev
ity
C

As we know, data is split up into packets when it is sent. If enough of


-R
rs
w

these packets are lost or stolen, someone who should not be allowed
ie

ve

to read the data could see it. These people might then use that data
t
ev

en
ni

illegally (in ways that are against the law).


R

m
ge

ss
se
id
br

As
am

175
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3 Networks and digital communication

en
ni
U

m
ge

ss
Data that has been stolen can be used for a range of purposes:

se
id
• fraud (where someone tries to trick others, usually to

br

As
gain money)
am

y
op
&
• identify theft (where someone uses your personal
-C

C
information to pretend to be you)

es

w
y

• phishing attacks (where someone tries to trick you into

Pr
op

ie
revealing personal data such as account details)

ev
ity
C

• account takeover (where someone tries to get into an

R
rs
w
ie

account such as your email account and locks you out).


ve

t-
ev

en
ni
R

m
Did you know?
ge

ss
Around 333.2 billion emails are sent each day.

se
id

This works out at about 47 per person, though some


br

people might send 100, but others might send 0.


As
am

y
Over 85% of all sent emails are spam (junk mail) or

op
&
-C

phishing attempts. The more active you are online,


s

C
es

the more spam emails you may receive.

w
y

Pr
op

ie
ev
ity
C

R
rs
w

Activity 1
ie

ve

t-
ev

en
ni

You will need: a desktop computer, laptop or tablet with access to


R

the internet, software such as Publisher or Canva to create a poster


ge

ss

Work in a group of four. Discuss what stolen data can be used for.
se
id
br

You might want to do some internet research into each use.


As
am

Produce a poster that explores three types of misuse. y


op
&
-C

Your poster might include:


s

C
es

• how each type of misuse can affect a person


y

Pr
op

ie

• how each type of misuse could affect a business.


ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

176
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3.2 Securing data

en
ni
U

m
ge

ss
se
id
What challenges did you and your group have?

br

As
am
How did you overcome the challenges?

y
op
&
What new skills did you learn?
-C

C
es

w
y

Pr
op

ie
ev
ity
C

User authentication

R
rs
w
ie

ve

t-
There is a range of ways to protect user data.
ev

en
ni

The most common way is to make sure only the user that the data
R

m
belongs to can access it. This can be done through user authentication,
ge

ss
which means checking that the user is who they say they are.

se
id

There are lots of ways to authenticate a user.


br

As
am

y
Username and passwords

op
&
-C

C
es

Having a username and password means that

w
y

anyone trying to get into your account needs to


Pr
op

ie
know both before they can get access. A username

ev
ity
C

is the unique name for each user of a system.

R
rs
w

A password is a secret string of words, numbers


ie

ve

t-
and characters that you set, like a special code you
ev

en
ni

can use to prove a username is yours.


R

m
ge

If someone can guess your passwords they can


ss

easily hack (access something they are not allowed


se
id
br

to) your accounts. Passwords are easy to guess if people use numbers
As
am

in a predictable order, the word ‘password’ or information that has y


op
&

meaning for them, such as their own name, a pet’s name or their
-C

birthday. These can be easy to guess or find out if you know


es

someone. A strong password should contain three random words and


y

Pr
op

ie

no personal information such as your pet's name or your birthday.


ev
ity
C

Even though security has improved and it is not good practice any
-R
rs
w

more, many organisations may ask that your password also contains:
ie

ve

• a combination of letters,
t
ev

en
ni

numbers and symbols Websites such


R

as passwordmonster.com
ge

• lowercase and uppercase


ss

can be used to check how


letters in random places.
se
id

good a password
br

As

might be.
am

177
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3 Networks and digital communication

en
ni
U

m
ge

ss
Unplugged activity 2

se
id
br

As
You will need: a pen and paper
am

y
op
&
Arun was born in 2014 and has a cat named Pancake.
-C

C
Arun’s favourite colour is purple.

es

w
y

Pr
Below is a list of passwords that Arun likes to use:
op

ie
ev
ity
C

• Pomegranate23

R
rs
w

• Arun123
ie

ve

t-
ev

• Arunspassword

en
ni
R

m
• Arun2014
ge

ss
• hoTel@23

se
id

• purple123
br

As
am

y
• Pancake1

op
&
-C

• jewelpowdergenerous
s

C
es

• chocolateflowerzoologist

w
y

Pr
op

ie
1 Decide whether each password is strong or weak on

ev
ity
C

a scale of 1 to 5, where 5 is very strong and 1 is very weak.

R
rs
w

2 Explain why you have made this decision.


ie

ve

t-
ev

3 For any weak passwords, suggest how they could be improved.


en
ni
R

m
ge

ss
se
id

Fingerprints
br

As
am

Fingerprints can be used to unlock digital devices with


y
op
&
-C

a fingerprint scanner.
s

C
es

When using a fingerprint to unlock a digital device, the scanner


w
y

Pr
op

ie

checks for the unique pattern of ridges on the fingerprint. The scanner
ev
ity

software compares the scanned fingerprint with the fingerprint that is


C

-R

stored in the device. If the two fingerprints match, the digital device is
rs
w
ie

ve

unlocked. If the two fingerprints do not match, the device stays locked.
t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

178
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3.2 Securing data

en
ni
U

m
ge

ss
se
id
= =
br
MATCH NO MATCH

As
am

y
op
&
-C

C
es

w
y

scanned stored scanned stored

Pr
op

ie
ev
ity
C

Fingerprints are a good way of authentication because every person

R
rs
w

has a unique set of fingerprints. This means that no two people


ie

ve

t-
have the same fingerprint. It is very difficult to hack this type
ev

en
ni

of authentication.
R

m
ge

ss
Did you know?

se
id

Our fingerprints are made up of three different types of pattern:


br

As
am

loops, whirls and arches. These patterns are what make

y
op
&
each fingerprint unique. Even identical twins have different
-C

C
fingerprints. However, there are some rare genetic conditions
es

which cause people to have no fingerprints.

w
y

Pr
op

ie
ev
ity
C

R
rs
w

Unplugged activity 3
ie

ve

t-
ev

en
ni

You will need: a microscope, paper, paint or ink


R

m
ge

Cover your thumb with a thick layer of paint or ink and print it onto paper.
ss

Make sure that your thumbprint is nice and clear.


se
id
br

As

Once it has dried, place your thumbprint under the microscope.


am

What do you notice? y


op
&
-C

With a partner, look at their thumbprint. What do you notice is the same?
s

C
es

What do you notice is different?


w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

179
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3 Networks and digital communication

en
ni
U

m
ge

ss
Facial recognition

se
id
br

As
Facial recognition is where a camera or scanner
am

y
takes a 2D or 3D image of a person’s face.

op
&
-C

This is then used in a similar way to fingerprints:

C
es
the facial image must match a stored image before

w
y

Pr
access to the data is allowed. You or your parents
op

ie
might use facial recognition to unlock your phones.

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
Activity 4
R

m
ge

You will need: a desktop computer, laptop or tablet with access to the

ss
internet and software suitable for making a leaflet (word processor

se
id
br

or desktop publishing software)


As
am

y
op
&
We have looked at a range of different ways of protecting your data.
-C

C
You are going to create a leaflet explaining:
es

w
y

Pr

• what different methods of protecting data are available


op

ie
ev
ity
C

• the advantages of each method

R
rs
w

• the disadvantages of each method


ie

ve

t-
ev

• examples of when you might use each method.


en
ni
R

You might want to use the internet to find relevant


ge

ss

information or extra information.


se
id
br

As

Stay safe!
am

y
Questions
op
&

You should never share


-C

passwords with someone


es

1 Give an example of a strong password that meets


w
y

else, even if they are your


Pr
op

the criteria for good passwords (don’t use one of


ie

best friend or promise to


ev

your real passwords!).


ity
C

keep it a secret. When


-R
rs

2 Describe why the combination of a username and


w

you discuss passwords in


ie

ve

password stops people from accessing your data class, you shouldn’t talk
t
ev

en
ni

when they shouldn’t. about or share your


R

3 Explain one reason why fingerprint recognition is a real passwords.


ge

ss

successful method of protecting data.


se
id
br

As
am

180
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3.2 Securing data

en
ni
U

m
ge

ss
Activity 5

se
id
br

As
You will need: a desktop computer, laptop or tablet with presentation software
am

y
op
&
Create a presentation for a parents’ evening
-C

C
es
that explains why it is important to protect

w
y

your data.

Pr
op

ie
ev
Your presentation should include:

ity
C

R
rs
w

• reasons why you need to protect your data


ie

ve

t-
• the different ways you can protect
ev

en
ni

your data
R

m
ge

• relevant websites that can provide

ss
additional information.

se
id
br

As
am

y
op
&
-C

C
Activity 6
es

w
y

Pr
op

ie
You will need: a desktop computer, laptop or tablet with internet access

ev
ity
C

and presentation software

R
rs
w

Data theft is often in the news, for example when a business has its data
ie

ve

t-
ev

stolen or when an important individual leaves a device on public transport.


en
ni
R

Using well-known news sites, research a recent example of data theft.


ge

ss

• What happened? When? Where? What was stolen?


se
id

• What impact was there? Who was affected?


br

As
am

Produce a presentation explaining what happened in the example you found. y


op
&
-C

C
es

w
y

Pr
op

ie

Look what I can do!


ev
ity
C

I can explain why data needs to be kept secure.


-R
rs
w

I can explain what user authentication is.


ie

ve

t
ev

en
ni

I can describe the different methods of user authentication.


R

m
ge

ss
se
id
br

As
am

181
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3 Networks and digital communication

en
ni
U

m
ge

ss
Project

se
id
br

As
Planning a network
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni

Your school is thinking of setting up a school shop in town so that parents or carers
R

can buy all the equipment learners need for school throughout the year.
ge

ss
se
id

The principal tells you that:


br

As

• The shop manager needs a laptop computer which can connect to the internet
am

wirelessly. The laptop will hold information about sales that must be kept secure
y
op
&
-C

as the manager will sometimes be away from their laptop. The laptop should
s

C
es

allow the manager to message the school quickly if there are any queries from
w
y

Pr

parents or carers.
op

ie
ev
ity
C

• The shop needs to have tablets for parents or carers to create online accounts
-R
rs

so they can purchase items on display. They will need to enter personal
w
ie

ve

details and they may wish to walk around the shop with the tablets.
t
ev

en
ni

• Parents can also log into existing accounts using their own devices.
R

m
ge

ss
se
id
br

As
am

182
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
3.2 Securing data

en
ni
U

m
ge

ss
Continued

se
id
br
Create a report explaining what needs to be considered when setting

As
am
up the computer network for the school shop.

y
op
&
You need to include:
-C

C
es
• Information about the different devices needed in the shop

w
y

Pr
op

(including detail about wireless and/or wired connections).

ie
ev
ity
C

• Consideration of bandwidth: will there need to be an increase of

R
rs
w

bandwidth for when devices are being used by parents in the shop?
ie

ve

t-
• Suggestions about how the data can be kept secure, exploring
ev

en
ni

appropriate types of user authentication.


R

m
ge

ss
se
id

Check your progress


br

As
am

y
1 Give one reason why data needs to be kept secure.

op
&
-C

2 Describe one method of securing data.

C
es

w
y

3 Why is it important that a password contains


Pr
op

ie
no personal information?

ev
ity
C

4 Describe why fingerprint recognition is a good

R
rs
w

way of keeping your data secure.


ie

ve

t-
ev

en
ni

5 Explain the different ways phishing can happen.


R

6 Describe how a network can become overloaded.


ge

ss

7 Give one example of a task that can take place


se
id

on a server.
br

As
am

8 Describe what happens to the data in a file y


op
&

(such as a document or sound file) when the


-C

file is sent to a person via email.


es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

183
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
Computer systems

U
4

m
ge

ss
se
id
br

As
am
4.1 Selecting hardware

y
op
&
-C

C
es
and software

w
y

Pr
op

ie
ev
ity
C

R
rs
We are going to:
w
ie

ve

t-
• identify hardware and software components in computer systems
ev

en
ni
R

• discuss the key factors we consider when choosing hardware and software

m
ge

ss
• select suitable components for a computer system based on the

se
id

needs of the user.


br

As
am

aesthetics functionality

y
op
&
component hardware
-C

C
cost longevity
es

fit for purpose software

w
y

Pr
op

ie
freeware upgrade

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

Getting started
es

w
y

Pr
op

What do you already know?


ie
ev
ity
C

• How to use devices that use different types of software.


-R
rs
w

• Computers use input devices and storage devices.


ie

ve

t
ev

en
ni

• There are different types of storage device.


R

• The difference between application and systems software.


ge

ss
se
id
br

As
am

184
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.1 Selecting hardware and software

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Make a list of all of the digital

op
&
-C

devices you have used in the

C
es
last week. Are there any other

w
y

Pr
digital devices that you have seen
op

ie
(for example, a teacher’s laptop)?

ev
ity
C

Add them to the list.

R
rs
w
ie

ve

t-
Look at your list of devices.
ev

en
Which device:
ni
R

m
• works the quickest?
ge

ss
• looks the best?

se
id
br

As
• costs the most?
am

y
op
&
• is the one you use the most?
-C

C
es

w
y

Pr
op

ie
ev
ity
C

Software and hardware


R
rs
w
ie

ve

t-
Every computer uses software and hardware.
ev

en
ni
R

Software is the range of programs you can use on a digital device.


m
ge

ss

Common software on digital devices includes:


se
id

• word processing software


br

As

Software usually
am

• image editing software y


op
&

has to be installed on
-C

• spreadsheet software
s

the computer. You can’t touch


C
es

• web browsers software. It’s made up of


w
y

Pr
op

ie

• email software code on the computer.


ev
ity
C

• virus checking software


-R
rs
w
ie

ve

• programs to manage your operating


t
ev

en
ni

system and devices.


R

m
ge

ss
se
id
br

As
am

185
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Did you know?

se
id
The software that runs on a mobile phone can have over

br

As
10 million lines of code!
am

y
op
&
-C

C
es
Some software can be very simple, like the program on a

w
y

Pr
microwave oven or a simple calendar on a mobile device.
op

ie
Some software can be very complex, such as a game or word

ev
ity
C

processing software. In order to run complex software, a digital

R
rs
w

device needs to have better hardware. For example a large game


ie

ve

t-
ev

may need a faster CPU and more RAM to run smoothly.

en
ni
R

Hardware is all of the physical parts of

m
ge

ss
a digital device. A keyboard,

se
a mouse, a hard drive and a
id

Hardware
br

game controller are all


As
components are
am

examples of hardware.

y
physical. This means you

op
&
-C

The hardware we choose can can pick them up and


s

C
es

affect how much a computer costs touch them!

w
y

Pr

and how fast it can run the software.


op

ie
ev
ity
C

R
rs
w

Components of a computer
ie

ve

t-
ev

en
ni

Each physical part of a computer and each piece of software is called


R

a component. A component is an individual part of a larger device.


ge

ss

For example, a train is made up of many components. A door, a seat


se
id

and a window are all components of a train.


br

As

The components of a computer are


am

y
op
&

made up from a range of hardware


-C

and software. Each component


C
es

affects how the computer


w
y

Pr
op

ie

runs and looks.


ev
ity
C

The following table shows some


-R
rs
w

examples of hardware components.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

186
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.1 Selecting hardware and software

en
ni
U

m
ge

ss
Component What it looks like Function

se
id
Graphics card Enables the computer to display

br

As
pictures and images on the
am

y
op
&
screen – the higher the quality of
-C

s
the graphics card, the more detail

C
es
can be shown

w
y

Pr
op

ie
ev
ity
C

R
rs
w

3D printer Allows you to print and


ie

ve

t-
create objects
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

Barcode Allows a computer to scan


R
rs
w

scanner barcodes in shops and post offices


ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

Processor Carries out instructions or


y
op
&
-C

performs calculations
s

C
es

(known as processing data)


w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

187
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Component What it looks like Function

se
id
Hard drive Stores data like programs and files

br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w

Power supply Provides electricity to


ie

ve

t-
the computer
ev

en
ni
R

m
ge

ss
se
id

Motherboard Connects all the hardware


br

As
am

components together

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

Case Provides protection to the


ge

ss

components to reduce the


se
id

risk of accidental damage


br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

188
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.1 Selecting hardware and software

en
ni
U

m
ge

ss
Software components allow the computer to carry out tasks that we want it to

se
id
do. For example, word processing software allows us to type letters and other

br

As
documents. Presentation software allows us to make presentations and slideshows.
am

y
op
&
Activity 1
-C

C
es

w
y

You will need: a desktop computer, laptop or tablet with access to the internet

Pr
op

ie
and presentation software such as PowerPoint or Google Docs

ev
ity
C

R
rs
w

Work with your partner to create a presentation called:


ie

ve

t-
‘How a computer works’.
ev

en
ni

Include these hardware components in your presentation:


R

m
ge

• processor • wireless network card

ss
se
id

• hard drive • motherboard


br

• power supply •
As
case
am

y
op
&
• touch screen • graphics card.
-C

C
es

For your presentation:

w
y

Pr
op

ie
1 Write a sentence or short paragraph about what each piece of

ev
ity

hardware does. You may need the internet to help you find out
C

R
about some of the hardware.
rs
w
ie

ve

t-
2 Use the internet to find a picture of each piece of hardware and
ev

en
ni

add it to the presentation.


R

3 Use the internet to search for the highest price you might pay for
ge

ss

each piece of hardware. Add the information to your presentation.


se
id
br

How am I doing?
As
am

Share your presentation with another pair.


y
op
&
-C

Are there any differences between your presentation and your partner pair’s
C
es

presentation? What differences are there? Discuss the differences.


w
y

Pr
op

ie

Make one change to your presentation to improve it.


ev
ity
C

-R
rs
w

Question
ie

ve

t
ev

en
ni
R

1 Laptops, mobile gaming devices and mobile phones all have similar
m

components. How easy is it to customise and select components for a


ge

ss

mobile phone, compared to a desktop PC? Why do you think this is?
se
id
br

As
am

189
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Selecting components

se
id
br

As
When you choose software and hardware components for a computer,
am

y
op
&
you need to consider a number of things, such as what it can do,
-C

s
how it looks, and how much it costs.

C
es

w
y

Pr
op

ie
Functionality

ev
ity
C

R
rs
w

Functionality describes the range of tasks that a device can do.


ie

ve

t-
For example, an oven that can roast and grill and has two cooking
ev

en
ni

compartments has high functionality. An oven that can only


R

m
roast has low functionality.
ge

ss
A computer that can complete a range of tasks has high functionality.

se
id
br

A computer that can only do two tasks has less functionality.


As
am

y
You can change the functionality of a computer by adding or

op
&
-C

removing components.
s

C
es

w
y

Pr
op

ie
Aesthetics

ev
ity
C

R
rs
w

We all have different opinions about how we like things to


ie

ve

t-
look. For example, some people might like their bedrooms to
ev

en
ni

be painted yellow. Some people may like theirs painted grey.


R

The aesthetics of an object means how that object looks.


ge

ss

Cars, boats and digital devices all have aesthetics.


se
id
br

Hardware allows people to choose the aesthetics


As
am

of their computer. y
op
&
-C

For example, different people might prefer:


s

C
es

• a simple computer case that is red


w
y

Pr
op

ie

or black
ev
ity
C

• a transparent computer case that


-R
rs
w

enables you to see inside


ie

ve

• a metal computer case.


ev

en
ni
R

m
ge

ss
se
id
br

As
am

190
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.1 Selecting hardware and software

en
ni
U

m
ge

ss
Some computers have bright, colourful and attractive components.

se
id
For example, some keyboards light up in different colours.

br

As
The keyboard with lights does the same tasks as a simple black
am

y
keyboard, but the keyboard with lights allows you to change the

op
&
colour of the keyboard so it matches the colour of your bedroom walls!
-C

C
es

w
y

Pr
op

ie
Speed

ev
ity
C

R
rs
w

The speed of a computer means how quickly it can process data.


ie

ve

t-
The different components in a computer affect how quickly a
ev

en
ni

computer runs.
R

m
• Processor
ge

ss
Computer processors have different processing speeds. A faster

se
id

processor helps a computer to load and use software more quickly


br

As
than a slower processor. A normal computer for general use, such
am

y
op
&
as in a school or in an office, does not need a really fast processor.
-C

C

es

RAM

w
y

Pr

RAM is random access memory. RAM stores programs that are


op

ie
ev
being used by the computer. If you have more RAM, your computer
ity
C

can do more tasks at the same time. People who want to use
R
rs
w

their computer for running very large programs or who use many
ie

ve

t-
ev

programs at once need more RAM.


en
ni
R

• Storage
ge

ss

Storage can come in many sizes, types and speeds. People who
se
id

work with very large files, like films and pictures, need much
br

As

more storage.
am

y
op
&
-C

Longevity
es

w
y

Pr
op

ie

Longevity is how long something remains useful for. For example, a


ev
ity
C

pair of shoes that lasts for three years before wearing out has greater
-R
rs
w

longevity than a pair of shoes that only lasts one year.


ie

ve

t
ev

It is important to think about how long a computer will last


en
ni

when buying it.


R

m
ge

ss
se
id
br

As
am

191
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
We can upgrade software on a computer quite easily. Upgrade means

se
id
to improve something or replace it with a better version. Upgrading

br

As
software often helps to make a computer useful for longer.
am

y
Hardware is more difficult to upgrade. You often need to buy new

op
&
-C

hardware to make a computer last longer.

C
es
You will usually pay more for a computer with higher longevity.

w
y

Pr
op

ie
Components in a computer that last longer will be made of

ev
ity
C

better-quality parts. These parts cost more money.

R
rs
w
ie

ve

t-
ev

Cost

en
ni
R

m
The total cost of a computer depends on how much each
ge

ss
component costs.

se
id
br

As
am

The cost of software

y
op
&
-C

Most computers come with general software


s

C
es

installed, but some people need software for

w
y

Pr
op

specific jobs. For example, a programmer

ie
Development

ev
needs development software.
ity
C

software is used to
R
This software would not normally be
rs
w

create programs.
ie

ve

installed on a device you buy from a shop.


t-
ev

en
ni

Software can be free or cost money.


R

When buying a device, you should think about what software is


ge

ss

already installed on it. Will you need to buy more software?


se
id

If so, you will spend more money. Can you just use free software?
br

As

This will keep the cost lower.


am

y
op
&

Software that you do not have to pay for is called freeware.


-C

Freeware does a similar job to software that costs money.


es

Freeware is often all that people need to complete simple tasks.


y

Pr
op

ie

Software that costs money has extra features compared with


ev
ity
C

freeware. These features give it better functionality. Usually, the more


-R
rs
w

money you spend on software, the higher the functionality.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

192
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.1 Selecting hardware and software

en
ni
U

m
ge

ss
For example:

se
id
• Expensive software may provide contact details for help and

br

As
assistance if anything goes wrong with the software.
am

y
op
&
• Expensive software may be able to receive updates to improve the
-C

C
software so it lasts longer, which means it has more longevity.

es

w
y

Look at these two pieces of software for photo editing.

Pr
op

ie
One is freeware and one is software you have to pay for.

ev
ity
C

R
rs
w
ie

ve

t-
Microsoft Paint Adobe Photoshop
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

Microsoft Paint comes free with Adobe Photoshop is a paid-for piece

R
rs
w

Windows. It is a basic piece of of software for editing pictures and


ie

ve

t-
software for editing photos and photos. It has a much wider range of
ev

en
ni

creating simple pictures. features for doing this compared with


R

Microsoft Paint. However, you have to


ge

ss

pay to use Adobe Photoshop.


se
id
br

As
am

y
op
&

Questions
-C

C
es

2 What are the advantages and disadvantages of choosing


y

Pr
op

ie

freeware like Microsoft Paint?


ev
ity
C

3 What are the advantages and disadvantages of choosing


-R
rs
w

Adobe Photoshop?
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

193
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Unplugged activity 2

se
id
br

As
You will need: a pen, paper and Resource sheet 4.2
am

y
op
&
Avast! is an example of antivirus software. There is a paid-for version
-C

C
and a free version.

es

w
y

Pr
Your teacher will give you a resource sheet which shows the features
op

ie
of the two versions of Avast!

ev
ity
C

R
rs
Work with a partner. Discuss the differences between each version
w
ie

ve

t-
and write down your ideas.
ev

en
ni

Imagine that you want to use this antivirus program on your computer.
R

m
Answer these questions individually:
ge

ss
• Would you pay money for it or would you just get the free version?

se
id
br

• Why might you make this decision?


As
am

y
Compare your answers with your partner’s. Do you agree?

op
&
-C

Discuss with your partner why you think companies give free versions

C
es

of their software.

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
How did you decide which version of the software
ev

en
ni

you would use? What was your thinking process?


R

m
ge

ss
se
id
br

As

Cost and speed


am

y
op
&

As with many things in life, the faster you want a task done, the more
-C

money it costs. For example, when you post a parcel, you can often
es

w
y

pay more money so that it arrives more quickly.


Pr
op

ie

The same is true for computers. For example:


ev
ity
C

-R
rs

• A faster processor helps a computer to load and use software


w
ie

ve

more quickly, but faster processors cost more money because they
t
ev

en
ni

are built from higher-quality materials.


R

m
ge

ss
se
id
br

As
am

194
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.1 Selecting hardware and software

en
ni
U

m
ge

ss
• More RAM makes a computer faster, but extra RAM costs money

se
id
to buy.

br

As
• Faster storage devices will allow a computer to run faster, but they
am

y
cost more than slower storage devices.

op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As

Only getting one high-quality component


am

may not make the whole computer faster! y


op
&
-C

For example, buying a really fast graphics


C
es

card that costs lots of money will not make


w
y

Pr
op

ie

basic tasks, like making a presentation, any


ev
ity

faster. However, it will help if you want to


C

-R

edit videos quickly.


rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

195
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Cost and aesthetics

se
id
br
Devices that are more attractive to customers often cost more money

As
am
to buy. For example, brightly coloured mobile phones, or computers

y
op
&
with beautiful designs on them are usually more expensive than plain
-C

C
devices that are grey or black.

es

w
y

Many people are willing to spend more money

Pr
op

ie
on a device with the aesthetics that they like.

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

Cost and longevity


ge

ss

Don’t forget, when


se
id

Quite often, the more


we upgrade components,
br

As

something costs, the


we often throw the old ones away.
am

longer it should last y


op
&

before it breaks.
This is bad for the environment and
-C

can cause pollution. It is important


C
es

Longevity affects how


to recycle old technology to
w
y

Pr
op

long it will be before


ie

help prevent pollution.


ev

you need to upgrade


ity
C

-R

a computer component.
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

196
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.1 Selecting hardware and software

en
ni
U

m
ge

ss
Sometimes it is better to spend more money on a computer or digital

se
id
device because it has high-quality components and so it will

br

As
last longer. This means you won’t need to upgrade it as soon.
am

y
This can help save money in the future.

op
&
-C

C
es
Did you know?

w
y

Pr
op

ie
It is estimated that we throw away

ev
ity
C

50 million tons of electronic waste every year.

R
rs
w

That’s the same as 1 000 computers being


ie

ve

t-
thrown away every second!
ev

en
ni
R

m
ge

Sofia is choosing between two processors for

ss
her new computer. Look at the table.

se
id
br

Processor speed Cost Longevity As Cost per year Better option?


am

y
op
&
Medium $150 3 years $50 ✗
-C

C
es

Fast $200 5 years $40 ✓

w
y

Pr
op

ie
ev
ity

The medium processor costs $50 less. However, the fast processor
C

R
will last for five years.
rs
w
ie

ve

t-
Which one should Sofia buy?
ev

en
ni

Because the faster processor will last longer, it will cost less money
R

over time. So if Sofia can afford the faster processor, it is the better
ge

ss

one to buy.
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

197
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Fit for purpose

se
id
br

As
Would you drive to school
am

y
in a tractor?

op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
Would you use a wheelbarrow
am

y
to take your books into school?

op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

Would you use a bicycle to


As
am

take a caravan on holiday? y


op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni

The answer to these questions is probably ‘No!’ Each picture shows


R

something that is not fit for purpose. If something is fit for purpose,
ge

ss

it is able to do the job we want to use it for.


se
id
br

As
am

198
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.1 Selecting hardware and software

en
ni
U

m
ge

ss
When we buy software or hardware, we need to think carefully about

se
id
whether it is fit for purpose.

br

As
Many computers and digital devices are designed to be ‘general
am

y
purpose’. This means that they will do most things for most people.

op
&
-C

But they will not be able to do everything that everyone wants.

C
es
Some computers need different hardware and software so they

w
y

Pr
op

ie
are fit for purpose for an individual.

ev
ity
C

Imagine an artist and a gamer both want new computers.

R
rs
w
ie

The artist spends lots of time drawing and editing pictures on a


ve

t-
ev

computer. The e-sports competitor spends a lot of time playing games.

en
ni
R

Needing a computer for artwork is very different to needing a computer

m
for gaming. Each of these people have different needs and requirements,
ge

ss
and each of these people need a computer that is fit for purpose.

se
id
br

As
am

Unplugged activity 3

y
op
&
-C

You will need: a pen and paper

C
es

w
y

Pr
op

ie
Part A

ev
ity
C

Two different people want to buy a computer: a teacher and a teenager

R
rs
w

who plays lots of games.


ie

ve

t-
Look at the table. It shows the type of device each person is thinking of buying.
ev

en
ni

Each part of the device is rated as high, medium or low. High means that it is
R

expensive and good quality. Low means that it is cheap and low quality.
ge

ss
se
id

Person Job Processor Storage RAM Monitors Longevity


br

As

Teacher Medium Low Low Medium Medium


am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev

Gamer High High High High Short


ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss

Work with three other classmates.


se
id
br

As
am

199
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Continued

se
id
Discuss the following questions in your group.

br

As
am

y
• Is the chosen device suitable for each person?

op
&
-C

• What makes you think it is? Why or why not?

C
es
• What makes you think it isn’t? Why or why not?

w
y

Pr
op

ie
• What changes would you make to the device to make it fit for purpose? Why?

ev
ity
C

Part B

R
rs
w
ie

ve
Think about what you use a computer for. Use the headings in the table to

t-
ev

en
write down the sort of computer you would need. Share your answers with
ni
R

the other members of your group. Discuss what each person has written and

m
ask them to explain their decisions.
ge

ss
se
id
br

Unplugged activity 4
As
am

y
op
&
Work with a partner.
-C

C
es

Ask them to imagine that they are buying a computer for a member of your

w
y

Pr

family. Tell your partner what your family member wants the computer for.
op

ie
ev
ity

1 Explain what longevity means. Describe how longevity relates to cost.


C

R
Does your partner agree with your explanation?
rs
w
ie

ve

t-
2 Ask your partner to:
ev

en
ni

a recommend the components and software they would need


R

b use a low, medium and high rating when talking about the processor,
ge

ss

storage, RAM and monitors


se
id

c explain why they have chosen these ratings.


br

As
am

Give your partner feedback on how you think they did. Now swap roles y
op
&

and do the activity again.


-C

C
es

w
y

Pr
op

ie

Look what I can do!


ev
ity
C

I can identify the hardware components and software components in computers.


-R
rs
w
ie

ve

I can discuss what is important when choosing hardware and software


t
ev

en

components for computer systems.


ni
R

I can select components for a computer based on the functionality


ge

ss

the computer needs to have for a particular user.


se
id
br

As
am

200
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.2 Programming environments

en
ni
U

m
ge

ss
4.2 Programming environments

se
id
br

As
am

y
We are going to:

op
&
-C

C
• understand the difference between text-based and block-based

es

w
y

programming languages

Pr
op

ie
ev
• identify when text-based and block-based programming languages

ity
C

should be used.

R
rs
w
ie

ve

t-
ev

en
ni
R

m
block-based programming language
ge

ss
programming environment

se
id

programming language
br

As
am

text-based programming language

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

Getting started
w
y

Pr
op

ie

What do you already know?


ev
ity
C

• How to use word processing software to create new documents.


-R
rs
w
ie

ve

• How to plan programs on paper before creating them on


t
ev

en

a computer.
ni
R

• How to write programs using Scratch.


ge

ss
se
id
br

As
am

201
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
What do you think are the differences between a block-based programming

op
&
-C

language and a text-based programming language?

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

Write down your ideas on some paper. Think about the following questions

w
y

Pr

when making your notes:


op

ie
ev
ity
C

• What does each one look like on the computer screen?

R
rs
w

• Do they both do the same thing?


ie

ve

t-
ev

en
ni

• Which do you think might be easier to use? Why?


R

Share your ideas with other learners.


ge

ss
se
id
br

As
am

y
Programming languages
op
&
-C

C
es

There are many types of programming language. A programming


w
y

Pr
op

language is a way of writing commands to create a program that


ie
ev

tells a computer what to do.


ity
C

-R
rs
w

We write a programming language (also known as code) inside a


ie

ve

programming environment. The programming environment is a set of


t
ev

en
ni

tools that are used to write and test computer programs. One tool is an
R

editor that allows us to type the commands we want for our program.
ge

ss

Programming environments are also known as development environments.


se
id
br

As
am

202
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.2 Programming environments

en
ni
U

m
ge

ss
Different programming languages are designed for different jobs.

se
id
Some languages are better for producing computer games.

br

As
Other languages are much better for writing pieces of software, like
am

y
word processing or spreadsheet software. There are some programming

op
&
languages that exist only for doing maths calculations. Some special
-C

C
programming languages have been created just to make web pages.

es

w
y

Pr
When you learn to program, you learn about different techniques and
op

ie
ev
ways to write code. Each technique does something different.

ity
C

R
rs
w

Many programming languages allow you to use these techniques –


ie

ve

t-
but you might write them in different ways in different languages.
ev

en
ni

This is similar to learning a foreign language. You can say ‘Hello!’


R

m
in many different languages – you just need to learn how to say
ge

ss
it in the language you want to use.

se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
Did you know?
ev

en
ni
R

No one really knows how many programming languages there are


m
ge

ss

in the world! Some programming languages that were created in the


1950s are still in use today!
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

203
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Block-based programming languages

se
id
br

As
Block-based programming languages allow the user to drag and
am

y
drop coloured blocks of code into a code window using a mouse.

op
&
-C

Blocks ‘click’ together to make larger blocks of code.

C
es
The most well-known block-based programming language is Scratch.

w
y

Pr
op

ie
You probably used Scratch in Unit 1.

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id

In Scratch, blocks that do similar things are grouped together by


br

As

colour. For example, all the blocks that allow you to move a sprite
am

are the same colour.


y
op
&
-C

It is also possible to edit the code in some blocks.


C
es

w
y

Block-based languages can be quite easy to use because a user


Pr
op

ie

doesn’t have to remember the names of commands. The colours also


ev
ity
C

make it easier to find the right block and make the language look more
-R
rs
w

fun and interesting.


ie

ve

t
ev

Block-based languages are often used to show new programmers


en
ni

how to program.
R

m
ge

ss
se
id
br

As
am

204
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.2 Programming environments

en
ni
U

m
ge

ss
Block-based languages allow users to create games and animations

se
id
quickly. For example, you can create a simple game where you

br

As
have to fly a rocket through space, avoiding asteroids.
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
Some block-based languages allow to you make music or control
-C

C
small robots. However, they are not suitable for making larger and
es

w
more complicated games. They are also not suitable for designing
y

Pr
op

ie
professional software such as word processing software.

ev
ity
C

R
rs
w

Activity 1
ie

ve

t-
ev

en
ni

You will need: a desktop computer, laptop or tablet with access to the internet
R

m
ge

ss

Search for Scratch in a web browser. On the Scratch website, go to the


se
id

‘Ideas’ page. Pick the ‘Getting Started’ tutorial and try using Scratch to make
br

As

a short program. Your program should display ten numbers on the screen.
am

y
op
&

How are we doing?


-C

C
es

Share your program with a partner. What differences are there between
w
y

Pr
op

your program and theirs? Do they both work in the same way?
ie
ev

What did you like about their program?


ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

205
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Text-based programming languages

se
id
br

As
Text-based programming languages
am

y
use text commands typed on a

op
&
-C

keyboard. Everything you do must

C
es
be typed into a file before it can

w
y

Pr
be run. This is very different to the
op

ie
‘drag and drop’ method of

ev
ity
C

block-based languages.

R
rs
w
ie

ve

t-
Text-based languages can be a lot
ev

en
ni
harder to learn. This is because you
R

need to remember the text used

m
ge

ss
for each command. You need to

se
remember what the commands do
id
br

and how to spell them. If you make


As
am

a spelling mistake or an error,

y
op
&
the program will not work.
-C

C
es

It also takes longer to get fun things to happen. Making a cat

w
y

Pr

dance across a screen can take a few minutes with block-based


op

ie
programming. It takes a lot longer to do this using a text-based

ev
ity
C

programming language.

R
rs
w
ie

ve

t-
There are advantages of text-based programming languages though.
ev

en

They can make much more advanced and challenging programs.


ni
R

They allow you to create and use many different techniques.


m
ge

ss

Almost every piece of software you use was written in a


text-based language.
se
id
br

As
am

Did you know? y


op
&
-C

The code that controls the Mars Curiosity Rover is about


s

C
es

5 million lines long! That’s 170 000 sides of A4 lined paper!


w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

206
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.2 Programming environments

en
ni
U

m
ge

ss
Activity 2

se
id
br

As
You will need: a desktop computer, laptop or tablet with access to the internet
am

y
and desktop publishing software

op
&
-C

C
es
Use the internet to find out about the text-based programming language C#

w
y

(‘C sharp’). This language is used to write programs and games.

Pr
op

ie
ev
Create a poster to share what you find out about C#.

ity
C

R
rs
w

Include the following information:


ie

ve

t-
• When was it invented?
ev

en
ni
R

• What does it look like? (Add a screenshot or other image.)

m
ge

ss
• What sort of software could you create with it? (Add some pictures

se
id

to show what the language might be used to create.)


br


As
How popular is the language? (How many people use it?)
am

y
op
&
-C

How are we doing?


s

C
es

w
Share your poster with your classmates. Look at the posters they have made.
y

Pr
op

ie
Find one more fact about the language that you could add to your poster.

ev
ity
C

Edit your poster to include this new information.

R
rs
w
ie

ve

t-
ev

en
ni

Using programming languages


R

m
ge

ss

Software and digital games are written


se
id

using programming languages.


br

As

Some game programs and pieces of


am

software are very complicated, such as:


y
op
&
-C

• a very realistic racing car game where


es

players feel like they are really driving


y

Pr
op

ie

a car – the car needs complicated


ev
ity
C

commands and
-R
rs
w

high-quality graphics
ie

ve

• word processing software and


ev

en
ni

presentation software with lots of tools


R

for a user to carry out different tasks.


ge

ss
se
id
br

As
am

207
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Complicated programs and games are

se
The text-based

id
written using text-based languages.

br
programming language C++

As
Other games and programs are
am

y
very simple, such as: is one of the most popular

op
&
languages for writing
-C

C
• a simple subject quiz that asks

es
computer games!
a question, provides space to

w
y

Pr
op

ie
answer it and then gives some feedback

ev
ity
C

• a simple game where you have to dodge asteroids

R
rs
w

by moving a rocket up and down on the screen.


ie

ve

t-
ev

Simple programs and games may be written using

en
ni
R

block-based programming languages.

m
ge

ss
se
id

Unplugged activity 3
br

Work on your own.


As
am

y
op
&
Look at this list of software and games. For each one,
-C

C
say if you think a block-based programming language
es

w
or a text-based programming language would be
y

Pr
op

ie
most suitable to create it.

ev
ity
C

• A simple spelling game where the computer plays

R
rs
w

words aloud and a learner then types in the


ie

ve

t-
correct spelling
ev

en
ni
R

• A graphics design program with lots of


m

complicated tools to edit images


ge

ss
se
id

• A simple animation where a dinosaur walks onto


br

As

the screen, tells a joke, and then walks off


am

• A complex multi-level adventure game with


y
op
&
-C

high-quality graphics and videos


s

C
es

w
y

Pr
op

ie
ev
ity
C

Look what I can do!


-R
rs
w

I know the difference between text-based and block-based


ie

ve

programming languages.
t
ev

en
ni
R

I can give examples of some languages and what they might be used for.
m
ge

ss
se
id
br

As
am

208
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.3 Storing data

en
ni
U

m
ge

ss
4.3 Storing data

se
id
br

As
am

y
We are going to:

op
&
-C

C
• understand why data must be changed into numbers before a computer

es

w
y

can process it

Pr
op

ie
ev
• identify the units used to show how large a storage device is.

ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
analogue continuous gigabyte nibble
ge

ss
bit digital kilobyte sound waves

se
id

byte digitise megabyte terabyte


br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

Getting started
As
am

What do you already know?


y
op
&
-C

How to save documents and files to a digital device.


C


es

w
y

Computers use binary to represent data.


Pr


op

ie
ev
ity
C

• You may have recorded music or voice messages for friends,


-R
rs

or spoken to them using video conferencing software.


w
ie

ve

• Digital content is stored on servers.


t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

209
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Look at a digital device. See if you can write down:

op
&
-C

s
• how much storage it has

C
es

w
y

• how much storage you have used

Pr
op

ie
ev
how much storage is left

ity

C

R
rs
w

• the units that measure storage on the device.


ie

ve

t-
ev

Discuss your findings with other classmates.

en
ni
R

m
ge

ss
se
id

Digital storage
br

As
am

y
op
&
Digital data and analogue data
-C

C
es

w
y

There are two types of data: digital data and analogue data.
Pr
op

ie
ev
Digital data is made up of binary digits: the numbers 0 and 1.
ity
C

R
The number 0 means that electricity is turned off, and the number 1
rs
w
ie

ve

means that electricity is turned on.


t-
ev

en
ni

Analogue data is different – it is not limited to the numbers 0 and 1.


R

It is a type of signal that uses waves, such as light or sound. Analogue


ge

ss

data is continuous. Something that is continuous keeps going without


se
id

being interrupted. When talking about data, continuous means the


br

As

data can take any value. A line of analogue data on a graph changes
am

smoothly. There are no breaks in the data. y


op
&
-C

Look at the following picture. It shows what analogue data and digital
s

C
es

data look like when the values are drawn on a graph.


w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

210
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.3 Storing data

en
ni
U

m
ge

ss
Analogue

se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
Digital

ev
ity
C

R
1

rs
w
ie

ve

t-
ev

en
ni

0
R

m
ge

ss
Digital devices can understand and create digital data.

se
id

Humans and animals can understand and create analogue data.


br

As
The most common analogue data is sound! Your ears hear in analogue
am

y
op
&
and continuously detect sound as sound waves. Sound waves are all
-C

around us. For example, your friends talking to you, the sound of the

C
es

traffic in a city, or the noise of music from a radio.

w
y

Pr
op

ie
Sound waves are air vibrations – they travel through the air and our

ev
ity
C

ears detect them. Our brain processes the sound waves and we hear

R
rs
w

the sound.
ie

ve

t-
ev

We can’t see sound waves, but the image below shows what a sound
en
ni

wave looks like when we record sound on a computer.


R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

Computers cannot process analogue data. This is because computers


-R
rs
w

can only understand data that is made up of binary digits: the


ie

ve

numbers 0 and 1.
t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

211
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
For a computer to understand, process or use analogue data such as sound,

se
id
we need to digitise it. This means converting (changing) the analogue data

br

As
into digital data (numbers) that a computer can process.
am

y
op
&
-C

s
Digitising analogue data

C
es

w
y

Pr
op

ie
To digitise sound waves, we need a microphone. Microphones detect

ev
ity
C

analogue data and a computer program then digitises the analogue data.

R
rs
w

The digital data can then be stored and used later.


ie

ve

t-
Computers can detect other forms of analogue data using different
ev

en
ni

sensors. For example, they can detect heat and light.


R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As

Storing and processing data


am

y
op
&

in digital format
-C

C
es

w
y

Pr

We can only store analogue data after it has been converted into digital data.
op

ie
ev
ity

You can do different things with the digital data. For example:
C

-R
rs
w

• store it on a hard drive


ie

ve

t
ev

• share it with other people, for example over the internet


en
ni
R

• change it using computer programs.


m
ge

ss
se
id
br

As
am

212
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.3 Storing data

en
ni
U

m
ge

ss
We can process digital music on a computer using Stay safe!

se
id
audio editing programs. Audio editing programs
There are laws that

br

As
can change the digital data in different ways.
protect most music from
am

y
For example, they can:

op
&
being copied and shared
-C

• make the sound louder or quieter

s
with other people.

C
es
• add more digital data Always check to see if you

w
y

Pr
op

ie
are allowed to send music
• delete parts of the recorded sound.

ev
ity
C

to other people.

R
rs
w
ie

ve

t-
ev

en
ni
Activity 1
R

m
ge

ss
You will need: a desktop computer, laptop or tablet with access to the internet

se
and sound recording software
id
br

As
Write a script to describe your understanding of how analogue data
am

y
op
&
is stored as digital data.
-C

C
Include the following in your script:
es

w
y

Pr

1 What is analogue data? Give some examples.


op

ie
ev
2 What is digital data?
ity
C

R
rs

3 Why do we digitise data?


w
ie

ve

t-
4 What can we use to digitise analogue data such as sound?
ev

en
ni

5 Describe what happens when we digitise data.


R

6 Explain what we can do with the digitised data.


ge

ss

Give some examples.


se
id
br

Record your sound file.


As
am

y
op
&

How am I doing?
-C

C
es

Play your recording back. Did you describe digitisation of data well?
w
y

Is there anything you would change about your script or recording if


Pr
op

ie

you did the activity again?


ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

213
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Units of storage

se
id
br

As
Computers can only process and store digital data. Remember,
am

y
digital data is stored as binary digits: the numbers 0 and 1.

op
&
-C

s
Humans use a different way of counting that uses the digits 0 to 9,

C
es
and the terms tens, hundreds, thousands and millions to group

w
y

Pr
op

ie
numbers together.

ev
ity
C

In computing, a single binary number (0 or 1) is called a bit

R
rs
w

(short for ‘binary digit’). Groups of bits are given names.


ie

ve

t-
These are units of storage.
ev

en
ni

• A nibble is made up of 4 bits.


R

m
ge

ss
• A byte is made up of 8 bits.

se
id

• A kilobyte (KB) is 1000 bytes.


br


As
A megabyte (MB) is 1000 kilobytes. These units of storage are
am

y
op
&
often used when talking about the sizes of files we store on a
-C

computer. For example, a photo might be 5 MB in size.

C
es

w
y

• A gigabyte (GB) is 1000 megabytes. Gigabytes are often used


Pr
op

ie
when talking about how big storage devices are, like hard disks

ev
ity
C

and USB pen drives.

R
rs
w

• A terabyte (TB) is 1000 gigabytes. Terabytes are used when


ie

ve

t-
ev

talking about storage space on servers, for example where web


en
ni

pages are stored.


R

m
ge

ss

Look at the table. It shows the units of storage and their size in bits.
se
id
br

Unit of storage Number of bits Also equal to . . .


As
am

Bit 1
y
op
&
-C

Nibble 4
es

w
y

Byte 8
Pr
op

ie
ev
ity
C

Kilobyte (KB) 8 000 1 000 bytes


-R
rs
w

Megabyte (MB) 8 000 000 1 000 kilobytes


ie

ve

t
ev

en

Gigabyte (GB) 8 000 000 000 1 000 megabytes


ni
R

Terabyte (TB) 8 000 000 000 000 1 000 gigabytes


ge

ss
se
id
br

As
am

214
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.3 Storing data

en
ni
U

m
ge

ss
Did you know?

se
id
One terabyte could store roughly 1000 hours of movies or

br

As
150 000 good-quality pictures.
am

y
op
&
-C

C
es
Unplugged activity 2

w
y

Pr
op

ie
ev
You will need: a pen or pencil, Worksheet 4.4

ity
C

R
rs
w

Work with a partner.


ie

ve

t-
ev

en
Complete the worksheet by matching the units of storage with the correct box
ni
R

or definition on the right-hand side.

m
ge

ss
se
id
br

As
am

y
How easy did you find learning the order of the units of

op
&
storage? What made it difficult? Is there anything you could
-C

C
es

use to help you remember the order more easily next time?

w
y

Pr
op

ie
ev
ity
C

R
rs
w

Units of storage and memory size


ie

ve

t-
ev

en
ni

We use units of storage to describe how large storage capacity (space) is in


R

storage devices.
ge

ss

The larger the number of bits we can store, the more a computer can ‘remember’.
se
id

Storage devices like hard disk drives (HDDs) and solid state drives (SSDs) are often
br

As

measured using terabytes (TB). One terabyte can store around 85 million pages of
am

y
op
&

text or around 250 000 music files!


-C

Many SSDs are between 2 TB and 5 TB in size.


es

w
y

Pr

If an SSD becomes full, we need to add more SSDs to allow the computer to store
op

ie

more data. You cannot make an SSD bigger once you have bought it. So it is
ev
ity
C

important to think about how much storage space you need before buying it.
-R
rs
w
ie

ve

Storage like random access memory (RAM) is smaller. RAM is usually measured in
t
ev

en
ni

gigabytes (GB). The most common size of RAM is 32 GB. This can store about 2000
R

music files. RAM comes in smaller sizes because it costs more to manufacture than
ge

ss

SSD storage. This is because the data on RAM can be accessed much faster than
se
id

on an SSD. RAM also uses more expensive components.


br

As
am

215
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
se
id
Sofia, I can’t

br

As
am store any more pictures

y
on my tablet!

op
&
-C

C
Try upgrading!

es

w
y

Add a 4 terabyte

Pr
op

ie
SSD to it!

ev
ity
C

R
rs
w
ie

ve

t-
ev

Some secondary storage devices can store large

en
ni
R

amounts of data. Older technology like HDDs can


U

m
store up to 22 TB of data. This would be more than
ge

ss
an average person would use in a lifetime. SSDs use

se
id

newer technology. However, they come in smaller


br

sizes. The most common sizes for SSDs are 1 TB,


As
am

y
op
&
2 TB and 4 TB. More modern SSDs can cost three
-C

times more than older types for the same amount

C
es

of storage. USB flash drives come in much smaller

w
y

Pr
op

ie
storage sizes. This is because they are designed to

ev
ity
C

be small and carried in a pocket. The most common

R
rs
w

sizes for USB flash drives are 128 GB and 256 GB.
ie

ve

t-
Memory cards are often used in mobile gaming devices. Memory cards
ev

en
ni

are also small and store about the same amount as USB flash drives.
R

You will often see memory cards with 128 GB and 256 GB of storage.
ge

ss

Portable SSDs can store much more data than memory cards,
se

but they are larger and less easy to carry in a pocket!


id
br

As
am

y
op
&

Did you know?


-C

C
es

You can store over 17 000 hours of music on 1 terabyte


w
y

of storage. That is the same as listening to music


Pr
op

ie

non-stop for over 700 days!


ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

216
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.3 Storing data

en
ni
U

m
ge

ss
Questions

se
id
br

As
1 How many nibbles are there in one byte?
am

y
2 How many bytes are there in 2 KB?

op
&
-C

s
3 How many bits are there in 2 KB?

C
es

w
4 How many gigabytes are there in 500 MB?
y

Pr
op

ie
5 How many megabytes are there in 20 TB?

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
What is the hardest thing about converting units of storage?
ni
R

m
What strategy can you use to help you in the future?
ge

ss
se
id
br

As
am

y
Look what I can do!

op
&
-C

I can explain why we need to convert data into numbers before a

C
es

computer can use it.

w
y

Pr
op

ie
I can identify the units used to show how large a storage device is.

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

217
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
4.4 Inside a computer

se
id
br

As
am

y
We are going to:

op
&
-C

C
• explore what a computer processor is

es

w
y

Pr
op

• describe what a computer processor does

ie
ev
ity
C

• identify primary and secondary storage in a computer

R
rs
w

• discuss the role of storage in


ie

ve

t-
ev

a computer. clock speed processor

en
ni
R

gigahertz secondary storage

m
hertz transistor
ge

ss
persistent storage volatile storage

se
id

primary storage
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

Getting started
es

w
y

Pr

What do you already know?


op

ie
ev
ity

A processor is part of a computer system.


C


-R
rs
w

• You know the input–process–output model.


ie

ve

t
ev

en

• You understand the units of data storage.


ni
R

• Computers save data on storage devices.


ge

ss
se
id
br

As
am

y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.4 Inside a computer

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
You will need: a calculator and a paper/pen

op
&
-C

C
es
Work with a partner.

w
y

Pr
op

ie
One of you will complete the sums below without a calculator.

ev
ity
C

One of you will use the calculator.

R
rs
w

Time how long it takes each of you to calculate the answers.


ie

ve

t-
ev

en
ni

• 423 + 143 • 25 × 50
R

m
• 213 + 124 • 126 – 83
ge

ss
se
id

• 105 – 53 • 125 ÷ 5
br

• 3 × 41 •
As
464 ÷ 4
am

y
op
&
How long did it take you to do the calculations?
-C

C
Was it quicker working it out in your head or using a calculator?
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

219
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
The processor

se
id
br

As
The processor in a computer is called the
am

y
op
&
central processing unit, or CPU for short.
-C

s
Without the processor, a computer

C
es
would not be able to process data.

w
y

Pr
op

ie
Many people think of the processor

ev
ity
as the brain of the computer.
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
The CPU is a bit like a very small calculator

se
id

made up of many small parts. Most CPUs


br

As
are only around 2 cm2. A transistor is a tiny
am

y
device that controls the flow of electricity

op
&
-C

in the CPU. Connecting many transistors


s

C
es

together allows the computer to carry

w
y

Pr

out calculations.
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

Did you know?


ge

ss
se

Modern CPUs can have over 1.25 billion transistors in them.


id
br

That’s about the same number as the number of people


As
am

who live in China or India! y


op
&
-C

C
es

CPU speed is measured in gigahertz (GHz).


w
y

Pr
op

A gigahertz is one billion hertz.


ie
ev
ity
C

A single hertz is ‘one cycle per second’. This means one calculation
-R
rs
w

per second.
ie

ve

Therefore, a CPU that runs at one gigahertz can perform one billion
t
ev

en
ni

calculations per second.


R

m
ge

The number of calculations a computer can complete each second


ss

is known as the clock speed.


se
id
br

As
am

220
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.4 Inside a computer

en
ni
U

m
ge

ss
The CPU inside a calculator works much faster than your

se
id
brain. Therefore, it is a lot quicker at calculating difficult

br

As
sums. The CPU inside a computer is even faster than the
am

y
one inside a calculator.

op
&
-C

This is why we use computers to process very difficult

C
es
mathematical sums. For example, we would use a

w
y

Pr
computer to work out the path of a planet’s orbit around
op

ie
ev
the solar system. To do this by hand would take a really

ity
C

long time, but a computer can do it very quickly.

R
rs
w
ie

ve

t-
ev

en
ni

Primary and secondary storage


R

m
ge

ss
We know that computers need to store data to be

se
id

able to use it. But where, and how, does a computer


br

As
store data?
am

y
op
&
Computer systems usually have two types of storage:
-C

primary storage and secondary storage.

C
es

w
y

Most primary storage is short-term storage. This means


Pr
op

ie
the storage device usually loses the data it has stored

ev
ity
C

when it is turned off. This type of storage is called

R
rs
w

volatile storage. An example of primary storage is


ie

ve

t-
random access memory (RAM). RAM stores all of the
ev

en
ni

data that is currently being used by the computer.


R

Secondary storage is long-term storage. This means


ge

ss

the device stores data even after the computer is


se
id

turned off. This type of storage is also known as


br

As

persistent storage (the data persists – to persist means


am

y
op
&

to keep on doing something). Secondary storage is


-C

normally used for storing programs and other data we


C
es

want to keep. A common type of secondary storage is


w
y

Pr
op

ie

a solid state drive (SSD).


ev
ity
C

-R
rs
w

Question
ie

ve

t
ev

en
ni

1 What type of storage do you use to save your files?


R

m
ge

ss
se
id
br

As
am

221
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Primary storage usually costs a lot more than secondary storage for

se
id
the same amount of storage. This is because it is made of high-quality

br

As
materials. This allows the CPU to access the data stored very quickly.
am

y
This is important because the CPU makes billions of calculations per

op
&
second. Slow primary storage can slow the CPU down.
-C

C
es
Secondary storage can store huge amounts of data. However,

w
y

Pr
it takes more time for the computer to access the data from
op

ie
ev
secondary storage.

ity
C

R
rs
w

Most computer systems need both primary and secondary storage.


ie

ve

t-
Many devices such as mobile phones, laptops, desktop computers
ev

en
ni

and smart watches all use primary and secondary storage.


R

m
ge

ss
Activity 1

se
id
br

As
You will need: a desktop computer, laptop or tablet with access to the internet,
am

y
presentation software or word processing software

op
&
-C

C
Copy and complete this table using presentation software or word
es

w
y

processing software. Use the internet to help you find an image


Pr
op

ie
for each type of storage.

ev
ity
C

R
rs
w

Feature Primary storage Secondary storage


ie

ve

t-
ev

en
ni

Speed Extremely fast A lot slower than


R

primary storage
ge

ss

Size/capacity
se
id
br

Storage type
As
am

Cost per gigabyte


y
op
&
-C

Physical size
es

w
y

Pr

Image
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

222
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.4 Inside a computer

en
ni
U

m
ge

ss
Continued

se
id
br

As
How are we doing?
am

y
Share your table with a partner. Discuss any differences you have.

op
&
-C

C
Edit your table with anything you learnt from your partner.

es

w
y

Pr
op

ie
ev
ity
Unplugged activity 2
C

R
rs
w
ie

You will need: a pen and paper


ve

t-
ev

en
ni

Write a short poem or rhyme about primary and secondary storage.


R

m
ge

ss
Your poem or rhyme should include:

se
id

• what primary storage is


br

• what secondary storage is


As
am

y
op
&
• how to remember the difference between the two types of storage.
-C

C
es

Read your poem to another learner. Ask them if this helped them

w
y

Pr

to understand the difference between primary and secondary storage.


op

ie
ev
ity

Ask for one idea to improve your poem and use the feedback to make
C

R
your poem even better.
rs
w
ie

ve

t-
ev

en
ni
R

Question
ge

ss
se
id

2 Why do we need both primary and secondary storage in a computer system?


br

As
am

y
op
&

Look what I can do!


-C

C
es

I can explain what a computer processor is.


w
y

Pr
op

I can describe what a computer processor does.


ie
ev
ity
C

I can give examples of types of storage in a computer.


-R
rs
w

I can discuss the role of storage in a computer.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

223
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
4.5 Robots in industry

se
id
br

As
am

y
We are going to:

op
&
-C

C
• explore what robots do in industry

es

w
y

Pr
op

• understand that robots can work on their own

ie
ev
ity
C

• understand the benefits of robots.

R
rs
w

autonomous
ie

ve

t-
manufacturing
ev

en
ni

robot
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

Getting started
w
y

Pr
op

ie

What do you already know?


ev
ity
C

• You know the input–process–output model.


-R
rs
w
ie

ve

• You understand the different roles of robots in delivery services,


t
ev

en

public transport and healthcare.


ni
R

• Artificial intelligence in computers simulates human intelligence.


ge

ss
se
id
br

As
am

224
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.5 Robots in industry

en
ni
U

m
ge

ss
Continued

se
id
br
Now try this!

As
am

y
Your teacher will set up a maze in your classroom. Work with other learners

op
&
-C

to guide a blindfolded person through the maze. You will be timed for

C
es
each try. You have three tries to get the best time you can.

w
y

Pr
op

ie
Answer these questions:

ev
ity
C

• How did you use commands to help guide the person through the maze?

R
rs
w

What worked well?


ie


ve

t-
ev

en
ni

• Did you listen to instructions from other learners?


R

m
• What did you learn from their instructions and how did that affect
ge

ss
your own choice of instructions?

se
id
br

As
am

y
op
&
Robots in industry
-C

C
es

There are many different types of robot. A robot is a machine that we can program

w
y

Pr
op

ie
to carry out instructions by itself. When robots work without help from humans, we

ev
ity
C

say that they are autonomous. Creating autonomous robots is a very complicated

R
rs

process. To be able to complete tasks on their own, the robots run long, complex
w
ie

ve

t-
programs that take a long time for programmers to write.
ev

en
ni

We often use autonomous robots in industry such as car manufacturing or food


R

production. Industry is work that involves making or selling goods or services.


ge

ss

Remember, manufacturing means making large numbers of goods in factories


se
id

using machines.
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

225
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Look at the robots in the car factory. They are designed to do the

se
id
same actions again and again. They do the same job day-by-day

br

As
for 24 hours without a break!
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id

We often think that all robots look like humans, but most robots do not
br

As
look like us.
am

y
Robots come in many shapes and sizes. Some perform very difficult

op
&
-C

or complicated tasks. Some perform very simple tasks.


s

C
es

Some robots may be a simple robotic arm

w
y

Pr
op

ie
that picks a box off a shelf.

ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie

Robotic arms that make cars need to be able


ev
ity
C

to move and twist to connect parts together.


-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

226
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.5 Robots in industry

en
ni
U

m
ge

ss
Robots can be very small. The circuits on

se
id
electronic devices are connected together

br

As
using tiny robotic arms. These robots are
am

y
very accurate.

op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id

Some robots look like dogs! They can walk


br

on four legs.
As
am

y
op
&
-C

C
Advantages and
es

w
y

Pr
op

ie
disadvantages

ev
ity
C

R
rs
w

Advantages of using robots include:


ie

ve

t-
• They can work without needing to
ev

en
ni

take breaks.
R

m
ge

ss

• They can be very accurate in what they do.


se
id

• They do not need to be paid any money


br

As

to work.
am

y
op
• They can work in places that are dangerous
&
-C

for humans, for example underwater.


s

C
es

Disadvantages of using robots include:


y

Pr
op

ie

• They can be very expensive to buy.


ev
ity
C

-R

• They can break down and be difficult or


rs
w
ie

ve

expensive to fix.
t
ev

en
ni

• They run complex programs that are


R

difficult to create.
ge

ss

• They can only do the job they are


se
id

programmed to do.
br

As
am

227
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Advantages of using humans include:

se
id
• They can work well in a team and change jobs easily.

br

As

am
They can spot things that robots may not be able to.

y
op
&
• They do not need complex programs to work.
-C

C
es
• They are able to do many jobs that robots cannot do

w
y

Pr
op

like creative tasks or looking after people.

ie
ev
ity
C

Disadvantages of using humans include:

R
rs
w

• They make more errors than robots.


ie

ve

t-
ev

en
• They have to be paid money to work.
ni
R

m
• They need to take breaks and have time off.
ge

ss
• They work more slowly than robots.

se
id
br

As
am

Unplugged activity 1

y
op
&
Have a short discussion with a partner about the advantages and
-C

C
es

disadvantages of using robots and humans in industry.

w
y

Pr
op

Copy the table below to show all the advantages and disadvantages of using

ie
ev
humans and robots. Try to think of extra advantages and disadvantages and
ity
C

R
include them in your table.
rs
w
ie

ve

t-
ev

Advantages Disadvantages
en
ni
R

Human Needs to take breaks


ge

ss

Robot Can work for a long time


se
id
br

As

without a break
am

y
op
&
-C

Share your ideas with another pair in your class.


s

C
es

w
y

Pr

How am I doing?
op

ie
ev
ity
C

How many advantages and disadvantages did you think of?


-R
rs
w

Do you have more advantage for humans or robots?


ie

ve

How confident do you feel about identifying the advantages and


t
ev

en
ni

disadvantages of using robots in industry? Give yourself a score out of 5,


R

where 1 is not very confident and 5 is very confident.


ge

ss
se
id
br

As
am

228
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.5 Robots in industry

en
ni
U

m
ge

ss
Large companies that sell products online have huge warehouses

se
id
of items that need to be sent to customers. Robots drive themselves

br

As
around these warehouses and collect the items. The robots then put
am

y
the products in a place where they can be packed up and sent to

op
&
the customer.
-C

C
es

w
y

Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
Robots in car manufacturing

op
&
-C

C
es

Building cars can be dangerous because engines, doors and other

w
y

parts of the car are very heavy. Also, cars need to be built carefully,
Pr
op

ie
for example robots weld and build things very accurately. This helps

ev
ity
C

to make the car safer for the person driving it. To produce as many

R
rs
w

cars as possible, building needs to happen all through the day and
ie

ve

t-
sometimes all through the night as well!
ev

en
ni
R

Robots are very useful when manufacturing cars. They can lift heavy
m
ge

items that humans cannot lift. They are also very accurate when
ss

measuring and fixing parts together. Robots can work through the
se
id
br

whole day and night, allowing more cars to be built in the same
As
am

period of time. y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

229
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
There are some things that robots cannot do, however. For example,

se
id
they cannot put the electrical circuits in the car. This task is too

br

As
difficult for a robot because of all the wires that need plugging in.
am

y
This is something a human needs to do. A human will do this as the

op
&
circuits and wires are very small. Human hands are better at pushing
-C

C
wires through small holes, or connecting small plugs to each other.

es

w
y

Pr
op

ie
Robots in food manufacturing

ev
ity
C

R
rs
w

How much food do you think people eat in


ie

ve

t-
the world each day? Imagine how much
ev

en
ni

food your school uses per day. Now think


R

m
how long a single person would prepare to
ge

ss
grow all of the food, package it and send it

se
id

to the shops.
br

Robots in food manufacturing can do lots


As
am

y
op
&
of these tasks quickly. Because robots
-C

can measure very accurately, they can fill


s

C
es

hundreds of containers per minute with

w
y

Pr
op

exactly the same amount of food.

ie
ev
ity
C

Robots can even do things like harvesting

R
rs
w

crops automatically.
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

230
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.5 Robots in industry

en
ni
U

m
ge

ss
Activity 2

se
id
br

As
You will need: a desktop computer, laptop or tablet with access to the internet,
am

y
a pen and paper

op
&
-C

C
es
You are going to carry out a news interview for ‘Cambridge International News’.

w
y

Pr
op

The interview has the title: ‘How robots are helping us in industry’.

ie
ev
ity
C

Work in a pair.

R
rs
w

• One of you will be the reporter.


ie

ve

t-
ev

en
• One of you will be a factory owner.
ni
R

m
Together, pick one industry you are interested in. Write a short interview
ge

ss
about how robots are helping in the industry you have chosen.

se
id

You may use this book and the internet to help you research ideas.
br

As
am

The reporter needs to ask the factory owner questions about how they

y
op
&
use robots.
-C

C
es

The factory owner needs to say how robots have helped their factory.

w
y

Pr
op

ie
Your interview should be about two minutes long.

ev
ity
C

Act out the interview in front of your class.

R
rs
w
ie

ve

How are we doing?


t-
ev

en
ni

Watch another pair’s news interview. Write down:


R

• three good things about it


ge

ss
se

• one area you think they could improve on, or one thing they have
id
br

not mentioned.
As
am

y
op
&
-C

C
es

Look what I can do!


w
y

Pr
op

ie

I can give examples of how robots are used in industry.


ev
ity
C

I can describe how robots can work on their own.


-R
rs
w

I can discuss the benefits of using robots in industry.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

231
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4 Computer systems

en
ni
U

m
ge

ss
Project

se
id
br

As
Designing computers and robots
am

y
op
Imagine you own a robotics and computer company.

&
-C

C
es
Task 1

w
y

Pr
op

You need to design and advertise a new computer.

ie
ev
You will create a marketing presentation to send to

ity
C

R
people to encourage them to buy your new computer.
rs
w
ie

ve

t-
1 Identify the purpose of your new computer. For example, it could be used
ev

en
ni

in medicine, it could be used by vets, in farming or to design new cars.


R

m
2 Design a computer that will be fit for purpose. You will need to think
ge

ss
about the:

se
id

a processor
br

b RAM
As
am

y
op
&
c hard disk
-C

C
d graphics card.
es

w
y

Pr

3 Research the prices for these items.


op

ie
ev
4 Create the marketing presentation to show:
ity
C

R
a what your computer will look like
rs
w
ie

ve

t-
b the different parts you are using
ev

en
ni

c the total cost of the computer (remember that you'll want to make
R

a profit so it should cost more for people to buy than it cost you to build).
ge

ss

5 Research some software that you think will be useful for your computer,
se
id

and add this to your presentation.


br

As

a Is it free or paid-for?
am

y
op
&

b Why will this be useful?


-C

6 Write a few sentences to describe why this computer will be the best
es

w
y

computer for the purpose you have designed it for.


Pr
op

ie

7 Add anything else you think may help sell this computer.
ev
ity
C

Think about things like:


-R
rs
w

a the way the computer looks


ie

ve

t
ev

b the longevity of the computer.


en
ni
R

8 Think of five advantages that this computer will give the person who buys it.
m
ge

ss
se
id
br

As
am

232
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
4.5 Robots in industry

en
ni
U

m
ge

ss
Continued

se
id
br

As
Task 2 am

y
op
Your company is also going to design a new robot to sell to customers.

&
-C

C
Think of an industry that interests you. How could a new robot help?

es

w
y

Pr
1 Think about what the robot will look like, and what it will do.
op

ie
ev
2 Draw your robot on a large piece of paper.

ity
C

R
3 Think of five advantages that this robot will give the person who buys it.
rs
w
ie

ve

t-
Add these to your drawing.
ev

en
ni
R

m
ge

ss
Check your progress

se
id

1 State three pieces of hardware that a computer needs.


br

As
am

2 Write a definition for the word ‘functionality’.

y
op
&
-C

3 State two examples of software that you might find on a computer.


s

C
es

4 If you buy higher-quality components for a computer, what might increase?

w
y

Pr
op

ie
5 What are text-based programming languages good at creating?

ev
ity
C

6 You can drag and drop code in a block-based programming language.

R
rs
w

Is this statement true or false?


ie

ve

t-
ev

en
ni

7 Which of these might a new


R

programmer find easier to use: a


m
ge

ss

block-based programming language


se

or a text-based programming
id
br

language?
As
am

8 What does a programming


y
op
&
-C

environment allow you to do?


s

C
es

9 Why do we change analogue data


w
y

Pr
op

ie

into digital data?


ev
ity
C

10 State one thing you could do with digital data.


-R
rs
w

11 State the smallest and the largest units of storage.


ie

ve

t
ev

en
ni

12 What is the purpose of a computer processor?


R

13 Give two advantages of using robots in industry.


ge

ss
se
id
br

As
am

233
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
Glossary
ge

ss
se
id
br

As
am

y
how things look or appear to people 190

op
&
aesthetics
-C

s
Zara likes the aesthetics of the car. Marcus does not.

C
es

w
not digital, a type of signal that uses waves such as
y

analogue

Pr
op

ie
light or sound, that humans and animals can create

ev
ity
C

and understand 210

R
rs
w

The sound coming from the speakers was analogue data.


ie

ve

t-
software that identifies, removes and prevents malware 172
ev

antivirus

en
ni

software My antivirus software scanned a file I downloaded and


R

m
identified a virus.
ge

ss
a symbol that instructs a computer about what type of

se
arithmetic
id
br

operator calculation to perform on values, for example division


As
am

or multiplication 23

y
op
&
The + symbol is an arithmetic operator for addition,
-C

C
and the – symbol is an arithmetic operator for subtraction.
es

w
y

Pr

attribute the data found in one field of a record in a database 137


op

ie
In the record, the attribute for the ‘Colour’ field was ‘red’.

ev
ity
C

R
the process of checking that the user is who they say
rs

authentication
w
ie

ve

t-
they are, for example by seeing if their password is correct 177
ev

en
ni

My laptop uses user authentication to keep my data safe.


R

autonomous able to act without human input 225


ge

ss

The autonomous robot vacuum cleaner plugs itself in when


se
id

its battery is low.


br

As

AVERAGE a spreadsheet function, written =AVERAGE(), that finds the


am

mean value of the selected cells 124


y
op
&
-C

I can use the AVERAGE function to work out the mean of


C
es

my test scores.
w
y

Pr
op

ie

bandwidth the maximum amount of data that can be transmitted


ev
ity
C

between two points in a network in a specific amount


-R
rs
w

of time, measured in bits per second 168


ie

ve

On a network with a high bandwidth, it takes only a few


t
ev

en
ni

seconds to download files.


R

m
ge

ss
se
id
br

As
am

234
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
bit a single binary digit (number) – the smallest unit of

ge

ss
binary counting 214

se
id
A bit can either be 1 or 0.

br

As
block-based a way of writing program code that uses drag-and-drop
am

y
op
&
programming ready-made lines of code to build working algorithms 204
-C

s
language Scratch is a block-based programming language.

C
es

w
y

broadcast a block in Scratch that can be used to run a sub-routine

Pr
op

ie
(to broadcast is to send a message out into the world for

ev
ity
C

people to receive) 41

R
rs
w

In their project, they used a ‘broadcast’ block to call


ie

ve

t-
the sub-routine.
ev

en
ni

byte a group of eight bits (binary digits) 214


R

m
The file was only one byte in size.
ge

ss
se
to use a sub-routine or function in an algorithm 36
id

call
br

Sofia can call the helper sub-routine from her main code,
As
am

which will sort the list into alphabetical order.

y
op
&
-C

cell reference a little code for the location of each cell, made up of
s

C
es

the cell’s column letter and row number 121

w
y

Pr

We use cell references to give spreadsheet software


op

ie
instructions about certain cells.

ev
ity
C

R
rs

the data type for any individual symbol, letter or number


w

character
ie

ve

t-
found on a computer keyboard 24
ev

en
ni

I struggled to find this character on my keyboard, but then


R

I saw it.
ge

ss

chatbot an algorithm designed to have a conversation


se
id

with a user in a human way 26


br

As

I spoke to a chatbot on the website when I needed support.


am

y
op
&

clock speed the number of calculations a computer can perform


-C

every second 220


C
es

The clock speed of the computer was two gigahertz.


w
y

Pr
op

ie

collaborate to work jointly with others on a project or task 111


ev
ity
C

Marcus and Sofia will collaborate to make a presentation


-R
rs
w

about computing careers.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

235
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
comparison a symbol that compares two numbers in an algorithm,

ge

ss
operator for example, to see if one number is greater than,

se
id
less than or equal to the other 28

br

As
am A comparison operator is used to check when the score

y
goes above 5.

op
&
-C

s
component an individual part of something 186

C
es
A computer is made up of many connected components.

w
y

Pr
op

ie
condition a situation that must be true for something else to

ev
ity
C

be possible 21

R
rs
w

The condition has been met: ‘score > 5’ is true, so the ‘say
ie

ve

t-
score’ line will run.
ev

en
ni

a section of code that tells a program to either run one


R

conditional
U

m
statement set of instructions or another set of instructions,
ge

ss
depending on whether a certain situation is true or false. 21

se
id

An ‘if then else’ block is one way to include a conditional


br

statement in your program.


As
am

y
op
&
continuous uninterrupted, unbroken 210
-C

C
The sound of the fire alarm was continuous.
es

w
y

Pr

continuous data numerical data that can have any value in a certain
op

ie
range, for example data about time, weight or length 97

ev
ity
C

A datalogger collects continuous data.

R
rs
w
ie

ve

t-
cost how much money you have to pay to buy something 192
ev

en
ni

The cost of a computer depends on the cost of the parts


R

it contains.
ge

ss

criteria requirements or conditions that need to be met, for example,


se
id

search criteria are words or conditions we search for in


br

As

a spreadsheet, database or on the internet, to find data


am

that matches 105


y
op
&
-C

There are six records that meet my search criteria.


s

C
es

data type the form of data, for example, text or numbers 138
w
y

Pr
op

ie

Each field in the database has a suitable data type.


ev
ity
C

database a set of organised data 136


-R
rs
w

We store data in a database.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

236
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
decision a choice you make after thinking about the options,

ge

ss
or a flowchart symbol that tells the program to decide

se
id
which path to follow next 12

br

As
am When they got to the decision in the flowchart, they had to

y
decide whether to follow the ‘Yes’ arrow or the ‘No’ arrow.

op
&
-C

s
decomposition breaking a large problem into smaller parts that are

C
es
easier to understand and simpler to solve 53

w
y

Pr
op

ie
Programmers use decomposition to help them

ev
ity
C

find repeating patterns so they can create more

R
rs
efficient programs.
w
ie

ve

t-
define to give a sub-routine a name and then create the
ev

en
ni

sequence of commands that it will follow 35


R

m
First define your sub-routine, then call it from the main code.
ge

ss
digital stored electronically on a device using binary digits

se
id

(0s and 1s) 210


br

As
A digital signal has square waves when its values are
am

y
op
&
shown on a graph.
-C

C
digitise to convert analogue data into digital data 212
es

w
y

We must digitise the sound wave so that the computer


Pr
op

ie
can process it.

ev
ity
C

encryption means to scramble a message 167

R
rs
w

In such a way that only the people who are meant to


ie

ve

t-
ev

read it can
en
ni
R

a judgement of the quality of a program and how well


m

evaluation
ge

ss

it solves a problem 68
se
id

Our evaluation showed that the program met its


br

success criteria.
As
am

facial recognition a system that takes an image of a face and compares


y
op
&
-C

this to a stored image to identify a person 180


s

C
es

My phone uses facial recognition in order to log in.


w
y

Pr
op

ie

field a set of data items about something you are collecting


ev
ity

data on – a category of data within a record 137


C

-R
rs
w

If you collect data about flowers, a field could be


ie

ve

‘Flower Colour’.
t
ev

en
ni

filter a tool that selects specific data based on search


R

criteria and hides all other data 146


ge

ss

I used a filter to show only people with birthdays in January.


se
id
br

As
am

237
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
fit for purpose suitable for the job we want to use it for 198

ge

ss
A hockey ball is fit for purpose.

se
id
flowchart a diagram that shows the steps of an algorithm 10

br

As
The flowchart helped people see how the algorithm worked.
am

y
op
&
formula a sequence of operators, numbers and/or cell references
-C

C
written in a spreadsheet cell, which tells the software to

es

w
y

do a calculation 122

Pr
op

ie
This column calculates the total for each row using

ev
ity
C

a formula.

R
rs
w

freeware software that is free of charge (you do not have to


ie

ve

t-
ev

pay to use it) 192

en
ni
R

The cooking app on my smartphone is freeware.


U

m
ge

ss
function a type of sub-routine – a separate section of code that

se
runs when it is called from the main code and may be
id

(programming)
br

called several times in one program 87


As
am

y
I called the ‘AtoZ’ function to put the items into

op
&
alphabetical order.
-C

C
es

function a code we can use in a spreadsheet program to save us

w
y

Pr

(spreadsheets) having to write very long formulas 124


op

ie
The SUM function adds together all the values in a row

ev
ity
C

or column.

R
rs
w
ie

ve

t-
functionality the range of tasks that an item or piece of software can do 190
ev

en
ni

The software has high functionality.


R

gigabyte a unit of data storage equal to 1000 megabytes 214


ge

ss

The hard drive has 1 gigabyte of storage.


se
id

gigahertz a unit of speed equal to 1000 hertz (cycles/calculations


br

As

per second), used to measure computer processor speed 220


am

y
op
&

The CPU operates at 4 gigahertz.


-C

GPS (Global a navigation system that uses satellites in space to


es

w
y

Positioning show the location of devices on the earth 166


Pr
op

ie

System) According to the GPS on my phone, I am at my local library.


ev
ity
C

hack to gain unauthorised access to a digital system 177


-R
rs
w

My bank account has been hacked and they have taken


ie

ve

t
ev

my savings.
en
ni
R

m
ge

ss
se
id
br

As
am

238
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
hardware the physical parts of a computer or digital device –

ge

ss
the parts you can touch 186

se
id
A computer’s hardware includes the motherboard and

br

As
am graphics card.

y
op
&
healthcare an organised way of looking after the medical needs of
-C

s
individuals or a community 151

C
es
Sets of organised data are very useful for solving problems

w
y

Pr
op

ie
in healthcare.

ev
ity
C

hertz cycle per second, the unit used to measure computer

R
rs
w

processor speed 220


ie

ve

t-
Calculations were made at a speed of 50 hertz.
ev

en
ni

initialisation getting everything ready for the start of the game,


R

m
making sure any changes made to the stage or sprites
ge

ss
when a Scratch program is run are reset 42

se
id

I added the ‘clear pen’ block to my program: this


br

As
initialisation block makes sure the stage is clear each time
am

y
op
&
the program is run again.
-C

C
input to provide data to a computer 79
es

w
y

A mouse click is a type of input.


Pr
op

ie
input variable a piece of data that a user puts into a program for the

ev
ity
C

program to store, such as the response to a question 23

R
rs
w

An input variable was used to remember the user’s


ie

ve

t-
ev

password.
en
ni
R

a way of describing how a program or system operates:


m

input-process-
ge

ss

output (IPO) it takes in data, works on it then gives out data 80


se
id

model A smart speaker follows the input-process-output (IPO)


br

model – it listens to speech through the microphone,


As
am

searches for the song online then plays it. y


op
&
-C

integer the data type for a whole number 24


s

C
es

7 is an integer but 7.5 is not.


w
y

Pr
op

ie

interaction two or more things meeting and having an effect on


ev
ity

each other 24
C

-R
rs
w

The interaction between the sprites is fun: they change


ie

ve

colour whenever they touch.


t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

239
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
interface the part of a program that the user sees, and that tells

ge

ss
them what they need to do 54

se
id
The program’s coding was very clever but the interface

br

As
am needed more work.

y
op
&
interrelate to be connected in such a way that each object has an
-C

s
effect on or depends on the other 49

C
es
The two sprites interrelate by calling each other’s

w
y

Pr
op

ie
sub-routines.

ev
ity
C

intranet a private network in an organisation that is only

R
rs
w

available to its members 163


ie

ve

t-
My school files are stored on our school intranet.
ev

en
ni

another name for a loop, where code or instructions


R

iteration
U

m
are being repeated 22
ge

ss
A count-controlled loop is one type of iteration.

se
id
br

a unit of data storage equal to 1000 bytes 214


As
kilobyte
am

y
The text document was 10 kilobytes in size.

op
&
-C

longevity how long something lasts for, or its ability to last 191
s

C
es

A plastic fork has low longevity.

w
y

Pr
op

ie
malware software designed to disrupt or harm a computer system 172

ev
ity
C

A virus is a type of malware.

R
rs
w

manufacturing making large numbers of goods in factories


ie

ve

t-
using machines 225
ev

en
ni

Robots are widely used in car manufacturing.


R

megabyte a unit of data storage equal to 1000 kilobytes 214


ge

ss

My collection of songs is 750 megabytes in size.


se
id
br

the extreme slowing of data transfer speeds across


As

network overload
am

a network due to too many requests for data at the y


op
&

same time 170


-C

Trying to stream three different films at the same time


es

w
y

caused network overload.


Pr
op

ie

a unit of data storage equal to 4 bits 214


ev

nibble
ity
C

Half a byte is called a nibble.


-R
rs
w
ie

ve

operator a symbol used in calculations and logic statements to


t
ev

en
ni

do a particular action, like adding or comparing 23


R

The multiplication operator we use with computers is *.


ge

ss
se
id
br

As
am

240
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
output information that you get out of a computer system

ge

ss
after data has been processed 79

se
id
After the play button was pressed, a song was output

br

As
am through the speakers.

y
op
&
packet a small parcel of data – part of a sent file that travels
-C

s
through a network 167

C
es
Sofia’s email was split into many hundreds of packets

w
y

Pr
op

ie
when she sent it.

ev
ity
C

password a secret combination of letters, numbers and other

R
rs
w

characters entered with a username to log into a system 177


ie

ve

t-
My account is protected with a password.
ev

en
ni

persistent storage data storage that keeps its data when the power is
R

m
turned off 221
ge

ss
A hard disk is a persistent storage device.

se
id
br

phishing stealing valuable information by tricking users into giving


As
am

it away, for example by emailing a link to a fake bank

y
op
&
website and asking them to log into it 176
-C

C
A phishing email was sent to my parents asking them for
es

w
y

their bank details.


Pr
op

ie
phrase searching searching for data that matches a series of words 146

ev
ity
C

I used phrase searching to find the phrase ‘Omani rial’

R
rs
w

in the database.
ie

ve

t-
ev

en
ni

physical a small computing device that you can program and hold
R

in your hands 81
m

programming
ge

ss

device Arun downloaded his program onto the physical


se
id

programming device and then took it to show his friends.


br

As

portable game a small, handheld computer that is used to play games 81


am

console Zara received a portable game console for her birthday


y
op
&
-C

and now she can play games on the way to school.


s

C
es

primary storage short term data storage that loses the data when the
w
y

Pr
op

ie

power is turned off 221


ev
ity
C

RAM is a kind of primary storage.


-R
rs
w

prioritising deciding how important something is and what should


ie

ve

be worked on first 58
t
ev

en
ni

You should prioritise finishing the introduction before


R

working on the ending.


ge

ss
se
id
br

As
am

241
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
procedure a type of sub-routine, a small section of code that can

ge

ss
be reused multiple times in a program 24

se
id
She made her code clearer and more organised by

br

As
am using procedures.

y
op
&
process to carry out calculations and instructions 79
-C

s
A computer will process the input data to produce

C
es
an output.

w
y

Pr
op

ie
processor the device that carries out calculations in a computer 220

ev
ity
C

The processor is very fast.

R
rs
w

programming programming ideas about code structure, such as


ie

ve

t-
ev

constructs sequence, selection and iteration 21

en
ni
R

Selection is an important programming construct that


U

m
programmers use regularly.
ge

ss
se
software that allows you to write and test programs 202
id

programming
br

As
environment The Scratch ‘Create’ screen is an example of
am

y
a programming environment.

op
&
-C

programming a way of writing commands to create a program


s

C
es

language a computer can understand 202

w
y

Pr

I wrote my game in a text-based programming language.


op

ie
ev
ity
C

prompt a message on the screen that shows a program is

R
rs

waiting for input 55


w
ie

ve

t-
A prompt appeared on the screen asking for my date
ev

en
ni

of birth.
R

prototype a basic version of something that users can test


ge

ss

and evaluate 56
se
id

She built two prototypes of the bridge before the


br

As

construction began.
am

y
op
&

question type the way in which a question is asked and answered, for
-C

example multiple choice (provides a set of answer


C
es

options to choose from) or open question (the user


w
y

Pr
op

ie

types their answer freely) 111


ev
ity
C

I can choose from different question types when I create


-R
rs
w

my form.
ie

ve

questionnaire a series of questions, usually presented as a form,


t
ev

en
ni

that is used to collect information from people 106


R

I completed the questionnaire about which computer


ge

ss

games I like to play.


se
id
br

As
am

242
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
radio waves a type of energy used for long-distance communication

ge

ss
that is generated by a transmitter and detected

se
id
by a receiver 165

br

As
am The radio in my garage uses radio waves to receive the

y
music I listen to.

op
&
-C

s
random in an order that does not have a clear pattern and

C
es
cannot be predicted 58

w
y

Pr
op

ie
Sofia couldn’t decide which book to read so she shut her

ev
ity
C

eyes and picked one at random.

R
rs
w

record provides all the data about one thing in a database –


ie

ve

t-
usually a row of data, which connects all the fields
ev

en
ni

that are linked 137


R

m
Each record contained the fields ‘Name’, ‘Age’ and ‘Height’.
ge

ss
retail industry related to shopping and the sale of items

se
id

to people, for example clothes, cars, food or games 151


br

As
My favourite toy shop is just a small part of the
am

y
op
&
retail industry.
-C

C
robot a machine that we can program to carry out instructions
es

w
y

by itself 225
Pr
op

ie
Each car is built by a robot.

ev
ity
C

secondary storage long term data storage 221

R
rs
w

A CD drive and hard disk are both secondary


ie

ve

t-
ev

storage devices.
en
ni
R

safe and protected from unauthorised access 175


m

secure
ge

ss

The data has been kept secure from other users.


se
id

selection choosing which commands to run from among the


br

As

options when the code carried out depends on the


am

answer to a condition
y
21
op
&
-C

A selection statement was used to check if it was raining


s

C
es

before deciding to take an umbrella.


w
y

Pr
op

ie

sequence a set of instructions or commands carried out in order,


ev
ity

or the order itself 21


C

-R
rs
w

The sequence of instructions for the dance routine has to


ie

ve

be carried on in the right order for the dance to look good.


t
ev

en
ni

server a computer that provides services such as programs


R

and storage to other computers in a network 160


ge

ss

I saved my work to the school server.


se
id
br

As
am

243
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
server farm a collection of computer servers that are connected

ge

ss
together in a network. 160

se
id
Our school has eight servers that are connected together in

br

As
am the server farm.

y
op
&
software programs that enable us to use computers to
-C

s
complete tasks 185

C
es
Word processing software is very useful for writing

w
y

Pr
op

ie
up investigations.

ev
ity
C

sound waves analogue data in the form of air vibrations that we

R
rs
w

hear as sounds 211


ie

ve

t-
My ears can detect sound waves.
ev

en
ni

junk emails that an account holder has not asked for 176
R

spam
U

m
My email account receives 12 spam emails a day.
ge

ss
se
a document full of cells arranged in rows and columns,
id

spreadsheet
br

into which you can type data 120


As
am

y
Spreadsheets are a useful way to organise and

op
&
analyse data.
-C

C
es

statistical the collecting of data to answer questions 96

w
y

Pr

investigation We carried out a statistical investigation to find out what


op

ie
the most popular computer game was in our school.

ev
ity
C

R
rs

playing a video or sound file over an internet connection


w

streaming
ie

ve

t-
instead of downloading it 161
ev

en
ni

Zara has been streaming a film on Netflix on her tablet.


R

string the data type for two or more characters in a row,


ge

ss

that can include spaces 25


se
id

The ‘say’ block in Scratch requires us to enter a string.


br

As

sub-routine a separate set of instructions in an algorithm that


am

y
op
&

performs a specific task 35


-C

A single sub-routine can be used again and again in


C
es

an algorithm.
w
y

Pr
op

ie

success criteria the things a program or solution should do in order to


ev
ity
C

be successful 69
-R
rs
w

The success criteria for the program are: there should


ie

ve

be a friendly greeting at the start, then ten spelling test


t
ev

en
ni

questions and a score displayed at the end.


R

m
ge

ss
se
id
br

As
am

244
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
SUM a spreadsheet function, written =SUM(), that finds

ge

ss
the total value of the selected cells 124

se
id
I can use the SUM function to add all of my costs together.

br

As
systematic thoughtful and logical, according to a method that
am

y
op
&
makes sense 74
-C

s
He created the seating plan in a systematic way, starting

C
es
with the children.

w
y

Pr
op

ie
terabyte a unit of data storage equal to 1000 gigabytes 214

ev
ity
C

My hard disk has a storage capacity of 1 terabyte.

R
rs
w

text-based a way of writing program code that uses words and


ie

ve

t-
ev

programming text to create working algorithms 206

en
ni

language Python is an example of a text-based programming


R

m
language.
ge

ss
se
a tiny device that controls the flow of electricity in
id

transistor
br

a computer processor 220


As
am

The computer has millions of transistors in it.

y
op
&
-C

transmission the action or process of sending files, usually digital,


s

C
es

between devices 175

w
y

Pr

Zara received a digital transmission of photos from Marcus.


op

ie
ev
ity
C

trends patterns in data 150

R
rs
w

This bar chart shows that there is a trend for taking a


ie

ve

t-
holiday in March.
ev

en
ni

unique one of a kind, different from everything else 120


R

Marcus has a unique fingerprint.


ge

ss

upgrade to improve something or replace it with a better version 192


se
id

I made my computer faster with an upgrade to


br

As

the processor.
am

y
op
&

user experience what it feels like to use a program 70


-C

The game’s graphics and music made for an excellent


es

w
y

user experience.
Pr
op

ie

a unique name that identifies who a user is when they


ev

username
ity
C

try to log into a network 177


-R
rs
w

I have to type my username into my laptop in order to log in.


ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

245
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
validation rules restrictions that only allow certain types or formats of

ge

ss
data to be entered into a spreadsheet or form 112

se
id
I used validation rules in my spreadsheet to make sure

br

As
am dates were in the right format.

y
op
&
variable a named container (like a box) in a program,
-C

s
that temporarily stores a value that can change 23

C
es
We stored points won in the game in a variable

w
y

Pr
op

ie
called Score.

ev
ity
C

volatile storage short term data storage that loses the data when the

R
rs
w

power is turned off 221


ie

ve

t-
RAM is an example of volatile storage.
ev

en
ni

a way to connect computers using radio waves


R

wi-fi
U

m
instead of wires 166
ge

ss
It is important that my laptop has wi-fi.

se
id
br

without wires or cables, but using radio waves


As
wireless
am

instead – wi-fi and cellular networks use wireless

y
op
&
connections 165
-C

C
I use a wireless connection to access the internet on
es

w
y

my tablet.
Pr
op

ie
ev
ity
C

R
rs
w
ie

ve

t-
ev

en
ni
R

m
ge

ss
se
id
br

As
am

y
op
&
-C

C
es

w
y

Pr
op

ie
ev
ity
C

-R
rs
w
ie

ve

t
ev

en
ni
R

m
ge

ss
se
id
br

As
am

246
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


ev
ity

R
rs
ve

t-
en
ni
U

m
Acknowledgements
ge

ss
se
id
br

As
am

y
op
&
The authors and publishers acknowledge the following sources of copyright material and are grateful
-C

for the permissions granted. While every effort has been made, it has not always been possible to

C
identify the sources of all the material used, or to trace all copyright holders. If any omissions are

es

w
brought to our notice, we will be happy to include the appropriate acknowledgements on reprinting.
y

Pr
op

ie
Thanks to the following for permission to reproduce images:

ev
ity
Unit 1 Enot-poloskun/GI; SrdjanPav/GI; Flashpop/GI; Sarayut Thaneerat/GI; StockPlanets/GI;
C

Catherine Falls Commercial/GI; Wonry/GI; Ariel Skelley/GI; Johnny Johnson/GI; Izabela Habur/

R
rs
w

GI; Dinodia Photo/GI; Jasmin Merdan/GI; A-Digit/GI; Mayur Kakade/GI; Yamtono/GI; Nora Carol
ie

ve

t-
Photography/GI; Jamie Grill/GI; Ariel Skelley/GI; mixetto/GI; Korrawin/GI; Photo_Concepts/GI; Virojt
ev

en
Changyencham/GI; Boris Panov/GI; BongkarnThanyakij/GI; dlewis33/GI; AleksandarNakic/GI;
ni

SrdjanPav/GI; ATHVisions/GI; Kirill Smyslov/GI; Erik Von Weber/GI; Jayk7/GI; Olemedia/GI; Maskot/
R

m
GI; Zeljkosantrac/GI; LumiNola/GI; Roberto Jimenez Mejias/GI; RobinOlimb/GI; Guido Mieth/GI; Yagi
ge

ss
Studio/GI; Malerapaso/GI; Bill Polo/The Boston Globe via GI; UniversalImagesGroup/GI; nemke/GI;
Hutchings Stock Photography/GI; Dan Kenyon/GI; JGI/GI; Emilija Manevska/GI; Jennifer A Smith/GI;

se
id

Unit 2 Sean Gladwell/GI; Steve Greaves/GI; Sandi Rutar/GI; Image Professionals GmbH/GI; Appfind/
br

As
GI; Karanik Yimpat/GI; Bernard Van Berg/GI; Alubalish/GI; Yellow Dog Productions/GI; Designer29/GI;
am

y
Jamie Grill Photography/GI; Tetra Images/GI; Peter Dazeley/GI; Martinedoucet/GI; Alex Potemkin/GI;

op
&
Jasmin Merdan/GI; Thanasis Zovoilis/GI; Zurijeta/GI; Jxfzsy/GI; Ivetavaicule/GI; Manuel Breva Colmeiro/
-C

GI; Maryna Terletska/GI; Jude Evans/GI; Dougal Waters/GI; Paul Biris/GI; Edwin Remsberg/GI; Jamie

C
es

Grill/GI; Ray Kachatorian/GI; Prapass Pulsub/GI; M_a_y_a/GI; MoMo Productions/GI; Maryna Terletska/

w
y

GI; Tuul & Bruno Morandi/GI; Jasmin Merdan/GI; Ida Marie Odgaard/GI; Isabel Pavia/GI; MirageC/GI;
Pr
op

ie
Alexmatamata/GI; Light to enjoy the world/GI; Nitat Termmee/GI; Patcharanan Worrapatchareeroj/GI;

ev
ity
C

Catherine Falls Commercial/GI; Andrew Brookes/GI; TommL/GI; Erik Isakson/GI; Shapecharge/GI; Mint
Images/GI; Unit 3 enjoynz/GI; Zhihao/GI; Pictafolio/GI; MoMo Productions/GI; Witthaya Prasongsin/

R
rs
w

GI; Bestshortstop/GI; PJjaruwan/GI; Jasmin Merdan/GI; Steven Tritton/GI; Oscar Wong/GI; Stock
ie

ve

t-
photo and footage/GI; MerveKarahan/GI; Jamie Grill/GI; JGI/GI; Cuba/GI; Skynesher/GI; Samere Fahim
ev

en
ni

Photography/GI; Cheunghyo/GI; Kohei Hara/GI; Anyaberkut/GI; Peter Dazeley/GI; Tim Robberts/GI;


Maskot/GI; Life On White/GI; Peter Dazeley/GI; Ole_CNX/GI; Thomas Barwick/GI; Catherine MacBride/
R

GI; Melinda Podor/GI; Unit 4 SasinT Gallery/GI; Phynart Studio/GI; Marko Geber/GI; Vadim Krupnov/
ge

ss

GI; Witthaya Prasongsin/GI; Maciej Frolow/GI; Nitat Termmee/GI; Tim Grist Photography/GI; Javier
se

Zayas Photography/GI; Manifeesto/GI; Creative Crop/GI; Leonello Calvetti/GI; Oleg Begunenco/GI;


id

Lorado/GI; Sam Barnes/GI; VacharapongW/GI; Alistair Berg/GI; Lya_Cattel/GI; Jose Luis Pelaez Inc/
br

As

GI; Marko Geber/GI; Norman Posselt/GI; Traffic_analyzer/GI; Luis Alvarez/GI; Victor Habbick Visions/
am

GI; Songsak Rohprasit/GI; Juanmonino/GI; Fotograzia/GI; Jamie Grill/GI; selimaksan/GI; Boonchai y


op
&

Wedmakawand/GI; Ezra Bailey/GI; Donald Iain Smith/GI; Jonathan Kitchen/GI; Yuichiro Chino/
-C

GI (x2); Mikroman6/GI; Mark Garlick/GI; Richard Newstead/GI; Narumon Bowonkitwanchai/GI;


C
es

Thamrongpat Theerathammakorn/GI; Xia yuan/GI; Monty Rakusen/GI; Comezora/GI; Mikkelwilliam/GI;


w
y

Humberto Ramirez/GI; Nitat Termmee/GI; Teera Konakan/GI; Monty Rakusen/GI; Photostock-Israel/GI;


Pr
op

ie

Imaginima/GI; Dusan Stankovic/GI; Maskot/GI


ev
ity
C

Key GI = Getty Images


-R
rs
w

Cover image by Pablo Gallego (Beehive Illustration)


ie

ve

Scratch is a project of the Scratch Foundation, in collaboration with the Lifelong Kindergarten Group
t
ev

at the MIT Media Lab. It is available for free at https://scratch.mit.edu


en
ni

Illustrations and photos showing the BBC Micro:bit are created and used with permission from the
R

Micro:bit Educational Foundation


ge

ss

Screenshots from Microsoft Excel are used with permission from Microsoft
se
id
br

As
am

247
y
op
&
-C

C
es

Copyright Material - Review Only - Not for Redistribution


R R R
ev ev ev
ie ie ie
w w w
C C C
op op op
y y y
-C -C -C -C
am am am am
br br br br
id id id id
ge ge ge ge
U U U U
ni ni ni ni
ve ve ve ve
rs rs rs rs
ity ity ity ity
Pr Pr Pr
es es es es
s s s s
& & & &
As As As As
se se se se
ss ss ss ss
m m m m
en en en en
t

Copyright Material - Review Only - Not for Redistribution


-R t- t- t-
R R R
ev ev ev ev
ie ie ie
w w w
C C C C
op op op op
y y y y

You might also like