You are on page 1of 3

Computing Fundamentals

1
Number System

Week002–Number System
Laboratory Exercise 001- Practice Laboratory 001

Objective/s:
At the end of this activity, you should be able to:
 Convert a given number to any number system.
 Provide the detailed step by step procedure.
 Apply and make used of number system conversion.

What to Prepare for the Activity:


 Pen and paper

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

Assessments
ANSWERS

1.

10111012 = 22110

binary 1 1 0 1 1 1 0 1

decimal (1*2 ) + (1*2 ) + (0*2 ) + (1*2 ) + (1*2 ) + (1*2 ) + (0*2 ) + (1*2 )


7 6 5 4 3 2 1 0

decimal
128 + 64 + 0+ 16 + 8+ 4+ 0+ 1
221 =

2. 25)  = (11001)
10 2

Step by step solution


Step 1: Divide (25)  successively by 2 until the quotient is 0:
10

25/2 = 12, remainder is 1


12/2 = 6, remainder is 0
6/2 = 3, remainder is 0
3/2 = 1, remainder is 1
1/2 = 0, remainder is 1
So, 11001 is the binary equivalent of decimal number 25.

3. (70)  = (111000)
8 2

Oct: 0 1 2 3 4 5 6 7
Bin: 000 001 010 011 100 101 110 111
(7)  = (111)
8 2

(0)  = (000)
8 2

Step 2: Group each value of step 1 to make a binary number:


111 000
So, (111000)  is the binary equivalent to (70)
2 8

4. = cd116
= c × 162d × 1611 × 160
= 328110

Now, we have to convert 328110 to binary


3281 / 2 = 1640 with remainder 1
1640 / 2 = 820 with remainder 0
820 / 2 = 410 with remainder 0
410 / 2 = 205 with remainder 0
Computing Fundamentals
3
Number System

205 / 2 = 102 with remainder 1


102 / 2 = 51 with remainder 0
51 / 2 = 25 with remainder 1
25 / 2 = 12 with remainder 1
12 / 2 = 6 with remainder 0
6 / 2 = 3 with remainder 0
3 / 2 = 1 with remainder 1
1 / 2 = 0 with remainder 1

Then just write down the remainders in the reverse order to get the answer, The hexadecimal
number cd1 converted to binary is therefore equal to :

110011010001

Assessments

You might also like