You are on page 1of 6

COMEROS, JOSHUA N.

BS ACCOUNTANCY 3B
EXERCISE II
PART1

1. Convert 102 from base 10 to base 2


ANSWER: (1100110)2
SOLUTION:

Division by 2 Quotient Remainder (Digit) Digit #


102/2 51 0 0
51/2 25 1 1
25/2 12 1 2
12/2 6 0 3
6/2 3 0 4
3/2 1 1 5
1/2 0 1 6

2. Convert 0101 1010 1000 1101 from base 2 to hexadecimal


ANSWER: (5A8D)16
SOLUTION:
From binary to decimal
0101101010001101)₂ = (0 × 2¹⁵) + (1 × 2¹⁴) + (0 × 2¹³) + (1 × 2¹²) + (1 × 2¹¹) + (0 × 2¹⁰)
+ (1 × 2⁹) + (0 × 2⁸) + (1 × 2⁷) + (0 × 2⁶) + (0 × 2⁵) + (0 × 2⁴) + (1 × 2³) + (1 × 2²) + (0 ×
2¹) + (1 × 2⁰) = (23181)₁₀

Division by 16 Quotient Remainder (Digit) Digit #


23181/16 1448 13 0
1448/16 90 8 1
90/16 5 10 2
5/16 0 5 3

3. Convert 100 from decimal to base 2


ANSWER: (1100100)2
SOLUTION:

Division by 2 Quotient Remainder (Digit) Digit #


100/2 50 0 0
50/2 25 0 1
25/2 12 1 2
12/2 6 0 3
6/2 3 0 4
3/2 1 1 5
4. Convert 86 from decimal to base 8
ANSWER: (126)8
SOLUTION:

Division by 8 Quotient Remainder (Digit) Digit #


86/8 10 6 0
10/8 1 2 1
1/8 0 1 2

5. Convert 63 from base 8 to base 2


ANSWER: (110011)2
SOLUTION:
Octal to binary= octal to decimal to binary
Octal to decimal 63 = (6 × 8¹) + (3 × 8⁰) = 51
Decimal to binary

Division by 2 Quotient Remainder (Digit) Digit #


51/2 25 1 0
25/2 12 1 1
12/2 6 0 2
6/2 3 0 3
3/2 1 1 4
1/2 0 1 5

6. Convert 1011 1100 from binary to base 10


ANSWER: (188)₁₀
(10111100)₂ = (1 × 2⁷) + (0 × 2⁶) + (1 × 2⁵) + (1 × 2⁴) + (1 × 2³) + (1 × 2²) + (0 × 2¹) + (0
× 2⁰) = (188)₁₀

7. Convert 302d from hexadecimal to binary


ANSWER: (11000000101101)2
Hexadecimal to binary = hexadecimal to decimal to binary
302D₁₆ = (3 × 16³) + (0 × 16²) + (2 × 16¹) + (13 × 16⁰)
= 12333₁₀

Division Quotient Remainder (Digit) Digit #


by 2
(12333)/2 6166 1 0
(6166)/2 3083 0 1
(3083)/2 1541 1 2
(1541)/2 770 1 3
(770)/2 385 0 4
(385)/2 192 1 5
(192)/2 96 0 6
(96)/2 48 0 7
(48)/2 24 0 8
(24)/2 12 0 9
(12)/2 6 0 10
(6)/2 3 0 11
(3)/2 1 1 12
(1)/2 0 1 13

8. Convert 0101 0001 1100 from binary to base 16


ANSWER:(51C)16
SOLUTION:
Binary to hexadecimal = binary to decimal to hexadecimal
(010100011100)₂ = (0 × 2¹¹) + (1 × 2¹⁰) + (0 × 2⁹) + (1 × 2⁸) + (0 × 2⁷) + (0 × 2⁶) + (0 ×
2⁵) + (1 × 2⁴) + (1 × 2³) + (1 × 2²) + (0 × 2¹) + (0 × 2⁰) = 1308₁₀

Division by 16 Quotient Remainder (Digit) Digit #


1308/16 81 12 0
81/16 5 1 1
5/16 0 5 2

9. Convert 1011 1101 0100 from binary to base 8


ANSWER (5724)8
SOLUTION:
Binary to octal= binary to decimal to octal
(101111010100)₂ = (1 × 2¹¹) + (0 × 2¹⁰) + (1 × 2⁹) + (1 × 2⁸) + (1 × 2⁷) + (1 × 2⁶) + (0 ×
2⁵) + (1 × 2⁴) + (0 × 2³) + (1 × 2²) + (0 × 2¹) + (0 × 2⁰) = (3028)₁₀

Division by 8 Quotient Remainder (Digit) Digit #


3028/8 378 4 0
378/8 47 2 1
47/8 5 7 2
5/8 0 5 3

10. Convert 171 from decimal to binary

ANSWER: (110011)2
SOLUTION:

Division by 2 Quotient Remainder (Digit) Digit #


171/2 85 1 0
85/2 42 1 1
42/2 21 0 2
21/2 10 1 3
10/2 5 0 4
5/2 2 1 5
2/2 1 0 6
1/2 0 1 7

PART II
1. Convert any decimal number between 0 and 255 into binary

Remainder

Division Quotient (Digit) Digit #

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

2. Convert any binary number between 0 and 11111 into decimal

Base 2 to decimal calculation:

(110011)2 = (1 × 25) + (1 × 24) + (0 × 23) + (0 × 22) + (1 × 21) + (1 × 20) = (51)10

3. Convert any binary number from 0 to 11111 into octal

Base 2 to decimal calculation:

(110011)2 = (1 × 25) + (1 × 24) + (0 × 23) + (0 × 22) + (1 × 21) + (1 × 20) = (51)10

Decimal to base 8 calculation:

Divide by the base to get the digits from the remainders:


Remainder

Division Quotient (Digit) Digit #

51/8 6 3 0

6/8 0 6 1

= (63)8

4. Convert any octal number from 0 to 77 into binary

Base 8 to decimal calculation:

(75)8 = (7 × 81) + (5 × 80) = (61)10

Decimal to base 2 calculation:

Divide by the base to get the digits from the remainders:

Remainder

Division Quotient (Digit) Digit #

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

5. Convert any binary number from 0 to 1111111 into hex

Base 2 to decimal calculation:

(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:

Divide by the base to get the digits from the remainders:


Remainder

Division Quotient (Digit) Digit #

188/16 11 12 0

11/16 0 11 1

= (BC)16

6. Convert any hex number from 0 to FFF into binary

Base 16 to decimal calculation:

(51C)16 = (5 × 162) + (1 × 161) + (12 × 160) = (1308)10

Decimal to base 2 calculation:

Divide by the base to get the digits from the remainders:

Remainder

Division Quotient (Digit) Digit #

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

You might also like