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

Number System & Data Representation
Number System & Data RepresentationNumber System & Data Representation
Number System & Data RepresentationPhillip Glenn Libay
 
Binary Conversion
Binary ConversionBinary Conversion
Binary ConversionRey Belen
 
Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Lovely Singh
 
Ascii and Unicode (Character Codes)
Ascii and Unicode (Character Codes)Ascii and Unicode (Character Codes)
Ascii and Unicode (Character Codes)Project Student
 
11 octal number system
11   octal number system11   octal number system
11 octal number systemLee Chadwick
 
Binary Slides
Binary Slides Binary Slides
Binary Slides jnoles
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital ElectronicsJanki Shah
 
Convert decimal to binary
Convert decimal to binary Convert decimal to binary
Convert decimal to binary tcc_joemarie
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1Deepak John
 
BCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codesBCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codesstudent
 

What's hot (20)

Number System & Data Representation
Number System & Data RepresentationNumber System & Data Representation
Number System & Data Representation
 
Binary Conversion
Binary ConversionBinary Conversion
Binary Conversion
 
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)
 
Number system conversion
Number system conversionNumber system conversion
Number system conversion
 
Ascii and Unicode (Character Codes)
Ascii and Unicode (Character Codes)Ascii and Unicode (Character Codes)
Ascii and Unicode (Character Codes)
 
11 octal number system
11   octal number system11   octal number system
11 octal number system
 
Binary Slides
Binary Slides Binary Slides
Binary Slides
 
Conversion binary to decimal
Conversion binary to decimalConversion binary to decimal
Conversion binary to decimal
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
Bcd
BcdBcd
Bcd
 
Convert decimal to binary
Convert decimal to binary Convert decimal to binary
Convert decimal to binary
 
Number system
Number systemNumber system
Number system
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1
 
number system
number systemnumber system
number system
 
Floating point arithmetic
Floating point arithmeticFloating point arithmetic
Floating point arithmetic
 
BCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codesBCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codes
 
1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM
 
Number Systems
Number SystemsNumber Systems
Number Systems
 

Similar to Binary code

004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdfMaheShiva
 
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.pptxGobinathAECEJRF1101
 
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
 
Presentation of ICT.ppt.pptx
Presentation of ICT.ppt.pptxPresentation of ICT.ppt.pptx
Presentation of ICT.ppt.pptxMinahilUmar1
 
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.pptKelvinSerimwe
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number systemNallapati Anindra
 
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.pdfshubhangisonawane6
 
data representation
 data representation data representation
data representationHaroon_007
 
Number System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptxNumber System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptxMaheShiva
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawabAmmar_n
 

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
 
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
 
Number system
Number systemNumber system
Number system
 

Recently uploaded

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 

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