Understanding Binary Code and its Conversion
Computers rely on binary code, consisting of 0s and 1s, to communicate. Learn how to recognize, convert denary numbers to binary, and understand the basics of the computer language. Discover how to create a table for conversion and practice converting numbers to binary in this informative guide.
Download Presentation
![](/assets/img/so-down.gif)
Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
E N D
Presentation Transcript
Binary Code 010000100110100101101110011000010111 001001111001001000000100001101101111 0110010001100101 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: 01010100011010000110100101110011001000 00011010010111001100100000011001010110 000101110011011110010000110100001010
The computer can only use 0s and 1s 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 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 0 0 1 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 0 0 1 0 1 We can forget the first few 0s and our binary number 5 looks like this 101
Task 1 Now use your table to convert these numbers to binary: 3 2 0 6 10 17 20 42 47 71 146 255
Answers 11 10 0 110 1010 10001 10100 101010 101111 1000111 10010010 11111111 3 2 0 6 10 17 20 42 47 71 146 255
Task 2 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 its time to convert binary to OUR digits 128 64 32 16 8 4 2 1 a) 0 1 0 0 0 0 1 0 128 64 32 16 8 4 2 1 b) 0 0 1 0 0 1 0 1 128 64 32 16 8 4 2 1 c) 1 0 0 0 0 0 0 1
Task 3 Can you convert these binary numbers into denary? a) 00011000 b) 00000101 c) 00010110 d) 01101011 e) 01111000 f) 10100100 g) 10100101 h) 10111100 i) 11010111 j) 11100110 k) 11111010 You MIGHT need a calculator!
Answers 24 5 22 107 01101011 120 01111000 164 10100100 165 10100101 188 10111100 215 11010111 230 11100110 250 11111010 00011000 00000101 00010110
Task 4 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
De-code these facts Task 5 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
Task 6 There are 10 kinds of people in the world, those who understand binary and those who don t Explain this joke
Binary code isnt 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 Decimal Binary 65 01000001 66 01000010 67 01000011 68 01000100 69 01000101 70 01000110 71 01000111 72 01001000 73 01001001 74 01001010 75 01001011 76 01001100 77 01001101 78 01001110 79 01001111 80 01010000 81 01010001 82 01010010 83 01010011 84 01010100 85 01010101 86 01010110 87 01010111 88 01011000 89 01011001 90 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 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 01100110 01100111 01101000 01101001 01101010 01101011 01101100 01101101 01101110 01101111 01110000 01110001 01110010 01110011 01110100 01110101 01110110 01110111 01111000 01111001 01111010
You can write your name in binary H a n n a h 010010000110000101101110011011100110000101001000
Every time you type a letter on your keyboard, the computer understands is as loads of 0s and 1s! 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 00100010 00100011 00100100 00100101 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
Task 7 Use PowerPoint to present your name using binary code. Extension: Start making secret messages for a partner in binary code!
Task 8 Decode this message: 010010010110011000100000011110010 110111101110101001000000110001101 100001011011100010000001110010011 001010110000101100100001000000111 010001101000011010010111001101011 000010000001111001011011110111010 101011100010011101110010011001010 010000001100001011011010110000101 111010011010010110111001100111010 00010010000001110100101001
Binary Game http://forums.cisco.com/CertCom/game/ binary_game_page.htm