Chapter 2 - Encoding Schemes and Number System
Exercise Solutions
|
|
|
|
|
|
|
|
|
|
|
American Standard Code for Information Interchange |
|
|
Indian Script Code for Information Interchange |
To convert the octal number (514)8 to
decimal, we can use the positional value of each digit in the octal system,
which is base 8. Each digit is multiplied by 8 raised to the power of
its position (counting from right to left, starting at 0).
Conversion Steps:
- Identify the digits: 5, 1, 4
- Assign positional values:
- 5 is
in the 82 place
- 1 is
in the 81 place
- 4 is in the 80 place
(514)8 = 5×82 + 1×81 + 4×80
(220)8 = 2×82
+ 2×81 +
0×80
= 2×64 + 2×8 + 0×1
= 128 + 16 + 0
= 144
|
Division |
Quotient |
Remainder |
|
144 ÷ 2 |
72 |
0 |
|
72 ÷ 2 |
36 |
0 |
|
36 ÷ 2 |
18 |
0 |
|
18 ÷ 2 |
9 |
0 |
|
9 ÷ 2 |
4 |
1 |
|
4 ÷ 2 |
2 |
0 |
|
2 ÷ 2 |
1 |
0 |
|
1 ÷ 2 |
0 |
1 |
- 7 corresponds to 7
- 6 corresponds to 6
- F corresponds to 15
Each digit in a hexadecimal number is multiplied by 16n, where n is the position of the digit from right to left, starting at zero:
- For 7
- For 6
- Fo F
Sum the results
1792 + 96 + 15 = 1903
Thus, the decimal equivalent of (76F)16 is 1903
(iv) (4D9)16 = (?)10
Identify the values of each digit:
- 4 corresponds
to 44
- D corresponds
to 13
- 9 corresponds to 9
- For 4
- For D
- For 9
Thus, the decimal equivalent of (4D9)16 is 1241.
Each digit in a binary number represents a power of 2,
starting from the rightmost digit (which is 20).
|
Postion from
right |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
Binary Digit |
1 |
1 |
0 |
0 |
1 |
0 |
1 |
0 |
Step 2: Calculate the decimal value
1 × 27
= 1 × 128 = 128
1 × 26
= 1 × 64 = 64
0 × 25
= 0 × 32 = 0
0 × 24
= 0 × 16 = 0
1 × 23 = 1 × 8 = 8
0 × 22
= 0 × 4 = 0
1 × 21
= 1 × 2 = 2
0 × 20
= 0 × 1 = 0
Step 3: Sum the results
128 + 64 + 0 + 0 + 8 + 0 + 2 + 0 = 202
Thus, the decimal equivalent of the binary number 11001010 is 202.
(vi) (1010111)2 = (?)10
Each digit in a binary number represents a power of 2, starting from the rightmost digit (which is 20).
|
Position from
right |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
Binary Digit |
1 |
0 |
1 |
0 |
1 |
1 |
1 |
Step 2: Calculate the decimal value
1 × 26 = 1 × 64 = 64
0 × 25 = 0 × 32 = 0
1 × 24 = 1 × 16 = 16
0 × 23 = 0 × 8 = 0
1 × 22 = 1 × 4 = 4
1 × 21 = 1 × 2 = 2
1 × 20 = 1 × 1 = 1
Step 3: Sum the results
64 + 0 + 16 + 0 + 4 + 2 + 1 = 87
Thus, the decimal equivalent of the binary number 1010111 is 87.
4. Try the following conversions:
(i) (54)10 = (?)2
Step-by-Step Conversion
54 ÷ 2 = 27,
remainder 0
27 ÷ 2 = 13,
remainder 1
13 ÷ 2 = 6,
remainder 1
6 ÷ 2 = 3,
remainder 0
3 ÷ 2 = 1,
remainder 1
1 ÷ 2 = 0, remainder 1
Thus 54 in binary is: 110110
(ii) (120)10 = (?)2
Step-by-Step Conversion
120 ÷ 2 = 60,
remainder 0
60 ÷ 2 = 30,
remainder 0
30 ÷ 2 = 15,
remainder 0
15 ÷ 2 = 7,
remainder 1
7 ÷ 2 = 3,
remainder 1
3 ÷ 2 = 1,
remainder 1
1 ÷ 2 = 0,
remainder 1
Thus 120 in binary is 1111000
(iii) (76)10 = (?)8
Step-by-Step Conversion
76 ÷ 8 = 9, remainder 4
9 ÷ 8 = 1, remainder 1
1 ÷ 8 = 0, remainder 1
This 76 in Octal is 114
(iv) (889)10 = (?)8
Step-by-Step Conversion
889 ÷ 8 = 111, remainder 1
111 ÷ 8 = 13, remainder 7
13 ÷ 8 = 1, remainder 5
1 ÷ 8 = 0, remainder 1
Step-by-Step Conversion
789 ÷ 16 = 49,
remainder 5
49 ÷ 16 = 3,
remainder 1
3 ÷ 16 = 0,
remainder 3
Step-by-Step Conversion
108 ÷ 16 = 6, remainder 12 (which is represented as C in hexadecimal)
6 ÷ 16 = 0, remainder 6
Thus 108 in Hexadecimal is 6C
5. Try the following conversions from Octal to Decimal:
(i) 145
Steps:
( 1 × 82 ) + (4 × 81 ) + ( 5 × 80 )
= ( 1 × 64 ) + ( 4 × 8 ) + ( 5 × 1 )
= 64 + 32 + 5
= 101
Thus 145 in Octal is 101 in Decimal
(ii) 6760
Steps:
( 6 × 83 ) + ( 7 × 82 ) + ( 6 × 81
) + ( 0 × 80 )
= ( 6 × 512 ) + ( 7 × 64 ) + ( 6 × 8 ) + ( 0 × 1 )
= 3072 + 448 + 48 + 0
= 3568
Thus 6760 in Octal is 3568 in Decimal.
(iii) 455
Steps:
( 4 × 82 ) + ( 5 × 81 ) + ( 5 × 80 )
= ( 4 × 64 ) + ( 5 × 8 ) + ( 5 × 1 )
= 256 + 40 + 5
= 301
Thus 455 in Octal is 301 in Decimal
(iv) 10.75
Steps:
Calculate the Decimal value:
( 1 × 81 ) + ( 0 × 80 )
= ( 1 × 8 ) + ( 0 × 1 )
= 8 + 0
= 8
Convert the fractional part (0.75)
( 7 × 8−1 ) + ( 5 × 8−2 )
= ( 7 × 1/8 ) + ( 5 × 1/64 )
= 7/8 + 5/64
= 61/64
Now add both parts:
8 + 61/64
= 8.953125

Comments
Post a Comment