You are on page 1of 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