Binary Code 010000100110100101101110000101110 010011110010010000110110111101 10010001100101 OBJECTIVES 1 Be
Binary Code 010000100110100101101110000101110 010011110010010000110110111101 10010001100101 OBJECTIVES 1. Be able to recognise binary code (Level 3 - ALL) 2. Be able to convert denary numbers into binary numbers (Level 4 - MOST) 3. Be able to convert characters into binary numbers (Level 5 – SOME)
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.
Computers have millions of tiny circuits inside. For a computer 0 means turn a circuit off 1 means turn a circuit on
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: 010101000110100101110010000001100101011000 0101110011011110010000110100001010
The computer can only use 0 s and 1 s So for a computer numbers go like is this… Denary (our numbers) 0 1 2 3 4 5 6 7 8 9 10 11 12 Binary 0 1 10 11 100 101 110 111 1000 1001 1010 1011 1100
How am I supposed to remember that? ! Make a table like this. . 128 64 32 16 8 4 2 1 ry Dena – ers b m u n keep ng! i l b u do 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 0 0 0 1 This is Binary
So 5 for us, is 00000101 for the computer 128 64 32 16 8 4 2 1 0 0 0 1 We can forget the first few 0 s and our binary number 5 looks like this… 101
1 k Tas Now use your table to convert these numbers to binary: 3 2 0 6 10 17 20 42 47 71 146 255
Answers 3 2 0 6 10 17 20 42 47 71 146 255 11 10 0 110 10001 10100 101010 101111 1000111 10010010 1111
2 k Tas Work with a friend, give them a number under 255 and see if they can convert it into binary. Is there any number that CAN’T be made?
Now it’s time to convert binary to OUR digits a) b) c) 128 64 32 16 8 4 2 1 0 0 0 0 128 64 32 16 8 4 2 1 0 0 1 0 1 128 64 32 16 8 4 2 1 1 0 0 0 1
Can you convert these binary numbers 3 k Tas into denary? You T H G I M a d nee ator! l u c cal a) 00011000 b) 00000101 c) 00010110 d) 01101011 e) 01111000 f) 10100100 g) 10100101 h) 10111100 i) 11010111 j) 11100110 k) 11111010
Answers 24 5 22 107 120 164 165 188 215 230 250 00011000 0000010110 01101011 01111000 10100101 10111100 11010111 11100110 11111010
4 k Tas 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
5 k Tas De-code these facts… More than 110010% of the people in the world have never made or received a telephone call. Gorillas sleep as much as 1110 hours per day. You can tell the sex of a horse by its teeth. Most males have 101000, females have 100100. On average, 1100 newborns will be given to the wrong parents daily. A giraffe can clean its ears with its 10101 inch tongue! A man named Charles Osborne had the hiccups for 1000101 years!
De-code these facts… Answers More than 50% of the people in the world have never made or received a telephone call. Gorillas sleep as much as fourteen hours per day. You can tell the sex of a horse by its teeth. Most males have 40, females have 36. On average, 12 newborns will be given to the wrong parents daily. A giraffe can clean its ears with its 21 -inch tongue! A man named Charles Osborne had the hiccups for 69 years!
Yey! Now you know binary code! LOL JK, we’ve only just started…
6 k Tas “There are 10 kinds of people in the world, those who understand binary and those who don’t” Explain this joke…
Binary code isn’t just about numbers. Every number, letter and symbol on your keyboard needs to be converted into binary so the computer can understand it. We can see all these conversions in something called an ASCII table.
From the ASCII table… Symbol 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 Decimal 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Binary 01000001 01000010 01000011 01000101 01000110 01000111 01001000 01001001010 01001011 01001100 01001101 01001110 01001111 01010000 01010001 01010010 01010011 01010100 01010110 01010111 01011000 01011001 01011010 Symbol 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 Decimal 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 Binary 01100001 01100010 01100011 01100100 01100101 01100111 01101000 01101001 01101010 01101011 01101100 01101101110 01101111 01110000 01110001 01110010 01110011 01110100 01110101 01110110 01111000 01111001 01111010
You can write your name in binary… H h a n n a 0100100001011011100110000101001000
Every time you type a letter on your keyboard, the computer understands is as loads of 0 s and 1 s! Here are some other characters you might need from the ASCII table…
More fom the ASCII table… Symbol Space ! " # $ % & ' ( ) * + , . / : ; < = > ? Decimal 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 58 59 60 61 62 63 Binary 00100000 00100001 00100011 00100100101 00100110 00100111 00101000 00101001 00101010 00101011 00101100 00101101 00101110 00101111 00111010 00111011 00111100 00111101 00111110 00111111 Symbol @ [ Decimal 64 91 92 Binary 01000000 01011011 01011100 ] ^ _ ` { ¦ } 93 94 95 96 123 124 125 01011101 01011110 01011111 01100000 01111011 01111100 01111101 ~ 126 01111110
7 k Tas Use Power. Point to present your name using binary code. Extension: Start making secret messages for a partner in binary code!
8 k Tas Decode this message: 01001001011000100000011110010 11011101010010000001101 10000101101110000001110010011 0010101100001011001000000111 0100011010010111001101011 0000100000011110010110111010111000100111001001010 0100000011000010110110000101 11101001011011100111010 000100100000011101001
Binary Game http: //forums. cisco. com/Cert. Com/game/binary _game_page. htm
- Slides: 26