Week002 LabEx
Week002 LabEx
1
Number System
General Direction: Convert the following number system to the following base as shown in the
table below. Example. Covert 1110 to Decimal, Octal and Hexadecimal. Note that this laboratory is
intended for practice only.
1. Convert 11011101(binary) to base 10, 8 and 16
2. Convert 25(decimal) to base 2, 8 and 16
3. Convert 70(octal) to base 2, 10 and 16
4. Convert CD1(hexadecimal) to base 2,10 and 8
ANSWERS:
1. Convert 11011101(binary) to base 10, 8 and 16
a. Base 10
Decimal 256 128 64 32 16 8 4 2 1
Digit
Value
Binary 0 1 0 1 1 1 0 1 1
Digit
Value
128+32+16+8+2+1 = 187
b. Base 8
011 011 101
421 421 421
3 3 5
c. Base 16
1101 1101
8421 8421
13 13
Final answer: 110111012 = 131316
2. Convert 25(decimal) to base 2, 8 and 16
a. Base 2
Assessments
Division by 2 Quotient Remainder/Bit value
25/2 12.5 1
12/2 6 0
6/2 3 0
3/2 1.5 1
½ 0.15 1
b. Base 8
c. Base 16
7 111
0 000
b. Base 10
0x80 = 0
Computing Fundamentals
3
Number System
7x81 = 56
0+56 = 56
Final answer: 708 = 5610
c. Base 16
7 111
0 000
8421 8421
11 | 1000
3 8
Final answer: 708 = 3816
C 1100
D 1101
1 0001
b. Base 10
1x160 = 1
13x161 = 208
12x162 = 3072
Final answer: CD116 = 328110
c. Base 8
C 1100
D 1101
1 0001