Professional Documents
Culture Documents
BS ACCOUNTANCY 3B
EXERCISE II
PART1
ANSWER: (110011)2
SOLUTION:
PART II
1. Convert any decimal number between 0 and 255 into binary
Remainder
150/2 75 0 0
75/2 37 1 1
37/2 18 1 2
18/2 9 0 3
9/2 4 1 4
4/2 2 0 5
2/2 1 0 6
1/2 0 1 7
= (10010110)2
Decimal to base 8 calculation:
51/8 6 3 0
6/8 0 6 1
= (63)8
Decimal to base 2 calculation:
Remainder
61/2 30 1 0
30/2 15 0 1
15/2 7 1 2
7/2 3 1 3
3/2 1 1 4
1/2 0 1 5
= (111101)2
(10111100)2 = (1 × 27) + (0 × 26) + (1 × 25) + (1 × 24) + (1 × 23) + (1 × 22) + (0 × 21) + (0 × 20) = (188)10
Decimal to base 16 calculation:
188/16 11 12 0
11/16 0 11 1
= (BC)16
Decimal to base 2 calculation:
Remainder
1308/2 654 0 0
654/2 327 0 1
327/2 163 1 2
163/2 81 1 3
81/2 40 1 4
40/2 20 0 5
20/2 10 0 6
10/2 5 0 7
5/2 2 1 8
2/2 1 0 9
1/2 0 1 10
= (10100011100)2