Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
Welcome Year 6
It’s a shame we cannot meet you to go through this lesson with you but we have to stay safe!
Read through the presentation and have a go at the worksheets if you can. Do not worry if its
too hard we will teach you how in Year 7!
Your IT and Computing Teachers are:
Mrs WentworthMr Warhurst
Buxton Community School
Objectives
Be able to recognise binary code
Be able to convert denary numbers into binary numbers
Be able to add two 8 bit binary numbers
Computers are not as smart as you think, in fact, they only know 2 things…
0 or 1
On or Off
Everything else is told to the computer by a human, this is called programming.
For a computer
0 means turn a circuit off
1 means turn a circuit on
Just like a light switch
Humans need to learn the computers language to be able to tell computers what to do.The computers language is called Binary.
Huge combinations of 1s and 0s would be too complicated for us to understand, so we need programming languages to help us to give computers instructionsthat they can execute or do.
We will learn more about that in Year 7 though.
Here is an example of what binary code looks like:
0101010001101000011010010111001100100000011010010111001100100000011001010110000101110011011110010000110100001010
The computer can only use 0s and 1s
So for a computer numbers go like is this…
Denary (our numbers)
Binary
0 0
1 1
2 10
3 11
4 100
5 101
6 110
7 111
8 1000
9 1001
10 1010
11 1011
12 1100
Remember Denary is our number system base 10 because we have 10 fingers
Remember Binary is the computers number system base 2 because the computer has only two possible states
On or off0 or 1
Nothing else!
How am I supposed to remember that?!
To make the number 5, place a 1 under the numbers that you
need and a 0 under the numbers that you don’t…
128 64 32 16 8 4 2 1
128 64 32 16 8 4 2 1
0 0 0 0 0 1 0 1
This is Binary for the number 5 because 4 + 1 = 5
So 5 for us in Denary or Base 10, is 00000101 for the computer
128 64 32 16 8 4 2 1
0 0 0 0 0 1 0 1
101
Try these on your worksheetThis PowerPoint will animate
ClickSlideshow
From current slide
248163264
00 0 1 1 0 0 1
411128
248163264
00 0 1 0 1 0 0
361128
248163264
10 0 0 0 0 0 0
161128
248163264
01 0 0 0 0 0 1
1291128
How did you do?Don’t worry if you found it hard we will learn this in
Year 7
Try these on your worksheet
Now it’s time to convert binary to OUR digits (denary)
128 64 32 16 8 4 2 1
0 1 0 0 0 0 1 0
128 64 32 16 8 4 2 1
0 0 1 0 0 1 0 1
128 64 32 16 8 4 2 1
1 0 0 0 0 0 0 1
a)
b)
c)
66
37
129
Binary additionAdding two 8 bit binary numbers
Working out how to turn a number into binary is pretty easy – yes?
Lets figure out how a computer can add numbers together.
How about 55 + 45
Well that’s 100, right?
Lets see
248163264
10 0 1 0 1 1 1
551128
248163264
00 0 1 1 1 0 11128
45
There are 4 rules
Rules
Computers only understand 1 and 0 remember!
The number 2 does not exist to a computer, neither does any other number
Only 1 or 0
So when we add 1 and zeros we can only ever get to 1 or 0
Hmm
Do not worry it is easy
• Rule 1 0 + 0 = 0
• Rule 2 0 + 1 = 1
• Rule 3 1 + 1 = 0 carry 1
• Rule 4 1 + 1 + carry 1 = 1 carry 1
00
0
011
11
0
111
1
1
1
Ok lets add two 8 bit numbers
248163264
10 0 1 0 1 1 1
55 + 451128
00 0 1 1 1 0 1
00 1 1 0 1 0 0111111
55
45
100
Try task 1 to 3
PlenaryUse your Exit Ticket to write down 2 things you
have learnt this lesson.
Exit Ticket:__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________