objectives 1. be able to recognise binary code 2. be able to convert denary numbers into binary...
Post on 20-Jan-2018
213 Views
Preview:
TRANSCRIPT
Binary Code0100001001101001011011100110000101110010011110010010000001000011011011110110010001100101
OBJECTIVES
1. Be able to recognise binary code
2. Be able to convert denary numbers into binary numbers
3. Be able to convert binary into denary numbers
How do computers work?
A Computer is ran by a CPU (Central processing unit), it’s kind of like the computer’s brain.
The CPU has lots of little switches in it that can either be ON (a 1) or OFF (a 0)
Computers are not as smart as you think, in fact, they only know 2 things…
0 and 1
Everything else is told to the computer by a human, this is called programming.
Humans need to learn the computers language to be able to tell computers what to do.
The computers language is Binary.
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 01 12 103 114 1005 1016 1107 1118 10009 100110 101011 101112 1100
Counting in denary we find the value of a number looking at its place value. Eg units, tens, hundreds and thousands.
Binary code works with a base base value of 2. Your teacher will demonstrate how we get from a base value of 2 to the place values of binary.
Use your activity sheet to calculate the place values.
Good work! You should now have the Following place values for binary:
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
Denary
numbers –
keep
doubling!
This is Binary
So 5 for us, is 00000101 for the computer
128
64 32 16 8 4 2 1
0 0 0 0 0 1 0 1
We can forget the first few 0s and our binary number 5 looks like this… 101
Now use your table to convert any 15 random numbers from your activity sheet to binary numbers.
Task 2
Once you have completed the task, ask a friend to check your answers.
Did you know there is a quick way to check your answers?
If the denary number ends with an odd number then the binary code must end with a “1”
…and if the denary number ends with an even number the binary code must end with a “0”
Now it’s time to convert binary to OUR digits
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)
64 + 2 = 66
32 + 4 + 1 = 37
128 + 1= 129
Can you convert these binary numbers into denary? Fill in your answers on your activity sheet
a) 00011000b) 00000101c) 00010110d) 01101011e) 01111000f) 10100100g) 10100101h) 10111100i) 11010111j) 11100110k) 11111010
Task 3
24 000110005 00000101 22 00010110107 01101011120 01111000164 10100100 165 10100101 188 10111100 215 11010111 230 11100110250 11111010
Answers
1. Show your shoe size in binary
2. Show the date of the month you were born in binary
3. Show your age in binary
4. Show your height in cm in binary
5. Show the amount of siblings you have in binary
6. Show your house number in binary
Extension Task
“There are 10 kinds of people in the world, those who understand binary and those
who don’t”
Explain this joke…
Why not try a cool game?
http://forums.cisco.com/CertCom/game/binary_game_page.htm
top related