SlideShare a Scribd company logo
1 of 10
BINARY
CODE Juzen A. Lusica
Mary Grace E. Salavaria
Objectives
•Define what is a Binary Code
•Learn how to calculate a binary code
•Learn how to write in binary numbers and
transform a binary code to an English
Language Letters
BINARY CODE
is a base 2 number system invented by Gottfried
Leibniz where numeric values are represented by different
combinations of 0 and 1, also known as OFF or ON.
Is the simplest form of computer code or programming
data.
HOW TO READ A BINARY CODE
The following chart illustrates the binary number 01101000. In
this example, we get the total value by reading the chart
from right to left and adding each column's value to that of the
previous column: (8+32+64) = 104. As you can see, we do not
count the bits with a 0 because they're "turned off."
VALUE 128 64 32 16 8 4 2 1
ON/OFF 0 1 1 0 1 0 0 0
CONVERTING A TEXT
INTO A BINARY CODE
In converting a text to binary code we will
use the ASCII or American Standard Code for
Information Interchange. ASCII codes represent
text in computers, telecommunications
equipment, and other devices. Most modern
character-encoding schemes are based on ASCII,
although they support many additional characters
Letter Code
Decima
l
Letter Code
Decim
al
A 01000001 65 N 01001110 78
B 01000010 66 O 01001111 79
C 01000011 67 P 01010000 80
D 01000100 68 Q 01010001 81
E 01000101 69 R 01010010 82
F 01000110 70 S 01010011 83
G 01000111 71 T 01010100 84
H 01001000 72 U 01010101 85
I 01001001 73 V 01010110 86
J 01001010 74 W 01010111 87
K 01001011 75 X 01011000 88
L 01001100 76 Y 01011001 89
M 01001101 77 Z 01011010 90
ASCII
EXAMPLE:
1. Convert the word CAT into a binary code.
First, we need to identify first the binary number of
each letter in the word CAT.
In the letter C base on the ASCII it is equal to 67
VALUE 128 64 32 16 8 4 2 1
ON/OFF 0 1 0 0 0 0 1 1
In the letter A base on the ASCII it is equal to 65
VALUE 128 64 32 16 8 4 2 1
ON/OFF 0 1 0 0 0 0 0 1
In the letter T base on the ASCII it is equal to 84
VALUE 128 64 32 16 8 4 2 1
ON/OFF 0 1 0 1 0 1 0 0
Lastly, we will just combine their binary
numbers.
C A T
01000011 01000001 01010100
Hence, the binary code of CAT is 010000110100000101010100.
2. Translate this binary code
01010011010101000100010101001101 into a word.
01010011 01010100 01000101 01001101
VALUE 128 64 32 16 8 4 2 1
ON/OFF 0 1 0 1 0 0 1 1
VALUE 128 64 32 16 8 4 2 1
ON/OFF 0 1 0 1 0 1 0 0
VALUE 128 64 32 16 8 4 2 1
ON/OFF 0 1 0 0 0 1 0 1
VALUE 128 64 32 16 8 4 2 1
ON/OFF 0 1 0 0 1 1 0 1
64+16+2+1=83
S
64+8+4+1=77
M
64+4+1=69
E
64+16+4=84
T
Hence, the word STEM is the text of the binary code
01010011010101000100010101001101
Binary code

More Related Content

What's hot

Binary Slides
Binary Slides Binary Slides
Binary Slides
jnoles
 
Number system....
Number system....Number system....
Number system....
mshoaib15
 

What's hot (20)

Binary number ppt
Binary number pptBinary number ppt
Binary number ppt
 
Number system conversion
Number system conversionNumber system conversion
Number system conversion
 
Data representation
Data representationData representation
Data representation
 
Binary computing
Binary computingBinary computing
Binary computing
 
Computer Number System
Computer Number SystemComputer Number System
Computer Number System
 
Binary number systems
Binary number systemsBinary number systems
Binary number systems
 
Number System
Number SystemNumber System
Number System
 
Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)
 
Binary codes
Binary codesBinary codes
Binary codes
 
Ascii 03
Ascii 03Ascii 03
Ascii 03
 
Conversion of number system
Conversion of number systemConversion of number system
Conversion of number system
 
Binary Slides
Binary Slides Binary Slides
Binary Slides
 
Number system
Number systemNumber system
Number system
 
Number system....
Number system....Number system....
Number system....
 
BCD.
BCD.BCD.
BCD.
 
Ascii and Unicode (Character Codes)
Ascii and Unicode (Character Codes)Ascii and Unicode (Character Codes)
Ascii and Unicode (Character Codes)
 
Digital principles basic
Digital principles basicDigital principles basic
Digital principles basic
 
Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes
 
Number system
Number systemNumber system
Number system
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
 

Similar to Binary code

12.Representation of signed binary numbers. Binary codes - BCD code, Gray co...
12.Representation of signed binary numbers.  Binary codes - BCD code, Gray co...12.Representation of signed binary numbers.  Binary codes - BCD code, Gray co...
12.Representation of signed binary numbers. Binary codes - BCD code, Gray co...
JatinJatin30
 
Conclusion in this titty tittle 106_1.ppt
Conclusion in this titty tittle 106_1.pptConclusion in this titty tittle 106_1.ppt
Conclusion in this titty tittle 106_1.ppt
KelvinSerimwe
 

Similar to Binary code (20)

Lec 02
Lec 02Lec 02
Lec 02
 
004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx
 
1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
12.Representation of signed binary numbers. Binary codes - BCD code, Gray co...
12.Representation of signed binary numbers.  Binary codes - BCD code, Gray co...12.Representation of signed binary numbers.  Binary codes - BCD code, Gray co...
12.Representation of signed binary numbers. Binary codes - BCD code, Gray co...
 
Presentation of ICT.ppt.pptx
Presentation of ICT.ppt.pptxPresentation of ICT.ppt.pptx
Presentation of ICT.ppt.pptx
 
digitalelectronics.ppt
digitalelectronics.pptdigitalelectronics.ppt
digitalelectronics.ppt
 
Conclusion in this titty tittle 106_1.ppt
Conclusion in this titty tittle 106_1.pptConclusion in this titty tittle 106_1.ppt
Conclusion in this titty tittle 106_1.ppt
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number system
 
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfCDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
 
Codes r005
Codes  r005Codes  r005
Codes r005
 
Introduction to Computing
Introduction to ComputingIntroduction to Computing
Introduction to Computing
 
data representation
 data representation data representation
data representation
 
Number System.pdf
Number System.pdfNumber System.pdf
Number System.pdf
 
Number system
Number systemNumber system
Number system
 
B sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lcktB sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lckt
 
Number System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptxNumber System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptx
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 
Counting circuits
Counting circuitsCounting circuits
Counting circuits
 

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Binary code

  • 1. BINARY CODE Juzen A. Lusica Mary Grace E. Salavaria
  • 2. Objectives •Define what is a Binary Code •Learn how to calculate a binary code •Learn how to write in binary numbers and transform a binary code to an English Language Letters
  • 3. BINARY CODE is a base 2 number system invented by Gottfried Leibniz where numeric values are represented by different combinations of 0 and 1, also known as OFF or ON. Is the simplest form of computer code or programming data.
  • 4. HOW TO READ A BINARY CODE The following chart illustrates the binary number 01101000. In this example, we get the total value by reading the chart from right to left and adding each column's value to that of the previous column: (8+32+64) = 104. As you can see, we do not count the bits with a 0 because they're "turned off." VALUE 128 64 32 16 8 4 2 1 ON/OFF 0 1 1 0 1 0 0 0
  • 5. CONVERTING A TEXT INTO A BINARY CODE In converting a text to binary code we will use the ASCII or American Standard Code for Information Interchange. ASCII codes represent text in computers, telecommunications equipment, and other devices. Most modern character-encoding schemes are based on ASCII, although they support many additional characters
  • 6. Letter Code Decima l Letter Code Decim al A 01000001 65 N 01001110 78 B 01000010 66 O 01001111 79 C 01000011 67 P 01010000 80 D 01000100 68 Q 01010001 81 E 01000101 69 R 01010010 82 F 01000110 70 S 01010011 83 G 01000111 71 T 01010100 84 H 01001000 72 U 01010101 85 I 01001001 73 V 01010110 86 J 01001010 74 W 01010111 87 K 01001011 75 X 01011000 88 L 01001100 76 Y 01011001 89 M 01001101 77 Z 01011010 90 ASCII
  • 7. EXAMPLE: 1. Convert the word CAT into a binary code. First, we need to identify first the binary number of each letter in the word CAT. In the letter C base on the ASCII it is equal to 67 VALUE 128 64 32 16 8 4 2 1 ON/OFF 0 1 0 0 0 0 1 1 In the letter A base on the ASCII it is equal to 65 VALUE 128 64 32 16 8 4 2 1 ON/OFF 0 1 0 0 0 0 0 1 In the letter T base on the ASCII it is equal to 84 VALUE 128 64 32 16 8 4 2 1 ON/OFF 0 1 0 1 0 1 0 0
  • 8. Lastly, we will just combine their binary numbers. C A T 01000011 01000001 01010100 Hence, the binary code of CAT is 010000110100000101010100. 2. Translate this binary code 01010011010101000100010101001101 into a word. 01010011 01010100 01000101 01001101
  • 9. VALUE 128 64 32 16 8 4 2 1 ON/OFF 0 1 0 1 0 0 1 1 VALUE 128 64 32 16 8 4 2 1 ON/OFF 0 1 0 1 0 1 0 0 VALUE 128 64 32 16 8 4 2 1 ON/OFF 0 1 0 0 0 1 0 1 VALUE 128 64 32 16 8 4 2 1 ON/OFF 0 1 0 0 1 1 0 1 64+16+2+1=83 S 64+8+4+1=77 M 64+4+1=69 E 64+16+4=84 T Hence, the word STEM is the text of the binary code 01010011010101000100010101001101