0% found this document useful (0 votes)
97 views8 pages

Binary Codes Group 5

Binary codes represent numeric values using combinations of 0s and 1s, known as binary. This document explains how binary codes work, including how to read a binary number from right to left and assign values to each bit position. It also provides an example of converting the word "CAT" into its binary code representation by looking up the ASCII values for each letter and combining the binary representations. Finally, it gives an example of translating a binary code back into a word by looking up the decimal values for each group of bits.

Uploaded by

Cham Rosario
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views8 pages

Binary Codes Group 5

Binary codes represent numeric values using combinations of 0s and 1s, known as binary. This document explains how binary codes work, including how to read a binary number from right to left and assign values to each bit position. It also provides an example of converting the word "CAT" into its binary code representation by looking up the ASCII values for each letter and combining the binary representations. Finally, it gives an example of translating a binary code back into a word by looking up the decimal values for each group of bits.

Uploaded by

Cham Rosario
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

BINARY CODES

GROUP 5
BINARY CODES
- is a base 2 number system invented by
Gottfried Leibniz where numeric values
represented by different combinations of
0, 1, also known as ON or OFF.

- is a simplest form of computer code or


programming data.
HOW TO READ
BINARY CODE
The following chart illustrates the binary number 01101000. In
thus 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”.

VALU
128 64 32 16 8 4 2 1
E

ON/O
0 1 1 0 1 0 0 0
FF
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.
ASCII TABLE
EXAMPLE:

1. Convert the word CAT into a binary code.

First, we need to identify the binary number of each letter in the word CAT.

VALUE 128 64 32 16 8 4 2 1

ON/OFF 0 1 0 0 0 0 0 1
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 1 0 1 0 0
In the letter T base on the ASCII it is equal to 84
Lastly, we will just combine their binary numbers.

Hence, the binary code of CAT is


010000110100000101010100

2. Translate this binary


code01010011010101000100010101001101 into a word.
64+16+2+1 = 83

64+16+4 = 84

64+4+1 = 69

64+8+4+1 = 77

Hence, the word STEM is the text of the binary code

01010011010101000100010101001101

You might also like