Professional Documents
Culture Documents
BINARY NUMBERS and Letter
BINARY NUMBERS and Letter
BINARY NUMBERS and Letter
Codes
Prepared by:
Binary Codes
One of the uses of the development of codes and ciphers are th coding schemes used to encode and decode different
types of information for identification for privacy and security purposes.
A Binary Number – is made up of only 0s and 1s. The digital world uses binary numbers
There are NO 2, 3 , 4 ,5 , 7 , 8 or 9 in binary.
Bit – is a single binary digit
Ex : 110100 ( has 6 bits )
.
BINARY NUMBERS 1- 19
Decimal Number Binary Code Decimal Number Binary Code
0 0 10 1010
1 1 11 1011
2 10 12 1100
3 11 13 1101
4 100 14 1110
5 101 15 1111
6 110 16 10000
7 111 17 10001
8 1000 18 10010
9 1001 19 10011
Decimal : 0 1 2 3 4 5 6 7 8 9 10
BINARY: 0 1 10 11 100 101 110 111 1000 1001 1010
Decimal : 20 25 30 35 40 45 50
BINARY: 10100 11001 11110 100011 101000 101101 110010
LETTERS BINARY CODES LETTERS BINARY CODES
M 01001101 M 01101101
A 01000001 A 01100001
T 01010100 T 01110100
H 01001000 H 01101000
A BIT STRING is a sequence of ze0 or more bits. The length of the string is the number of bits in the string.
2 6 5 8 8 is the Unit digit ( 100) or the 1’s place
5 is the Tens digit ( 101) or the 10’s place
6 is the Hundreds digit ( 102) or the 100’s place
2 is the Thousands digit ( 103) or the 1000’s place
1 1 1 1 0 1 from right:
1 is 1’s place ( 20 )
0 is the 2’s place ( 21)
1 is the 4’s place ( 22)
1 is the 8’s place ( 23)
1 is the 16’s place ( 24)
1 is the 32’s place ( 25)
13010 = 100000102
6910 = 10001012
EXERCISES:
1) 111112 = 1(16 ) + 1(8) + 1(4) + 1(2) + 1(1)
= 16 + 8 + 4 + 2 + 1
= 3110
TO CHECK:
DIVISION BY 2 QUOTIENT REMAINDER PLACE OF BITS
2) 31 15 1 1’
2) 15 7 1 2’S
2) 7 3 1 4’S
2) 3 1 1 8’S
2)1 0 1 16’S
0
EXERCISES:
1) 1111102 =
=
=
DIVISION BY 2 QUOTIENT REMAINDER PLACE OF BITS
ACTIVITY 1 CODES
2) 11100102 ________
3) 10010102 ________
4) 101111000102 ________
5) 101111100102 ________
1) 234 =_______________
2) 572 =________________
3) 127 =_________________
1 1 1
1 0 1 1 0 1
1 0 0 1 1 0
1 0 1 0 0 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 0 1 1 1 1
1 1 0 1 1 1 1 0
EXERCISES:
FIND THE SUM OF THE FOLLOWING BINARY NUMBERS:
CHECKING :
CHECKING:
ACTIVITY 2
ADDING BINARY NUMBERS
1
1 1 1 0 1 1 0 0
1 0 0 1 1 0 0 1
TO CHECK: CONVERT BINARY TO DECIMAL THEN SUBTRACT
11102 = 1(8) +
1 0 1 1(4) + 1(2) + 0(1) = 14
10012 = 1(8) + 0(4) + 0(2) + 1 (1) = 9
1012 =1(4) + 1(2) + 1(1) = 5
BINARY JOKE