EIT_Assignment solution-1
EIT_Assignment solution-1
Q.1 (i) Represent the decimal number 5327 in 8421 BCD code.
Solution The given decimal number is 5327.
The corresponding 4-bit 8421 BCD representation of decimal digit 5 is 0101.
The corresponding 4-bit 8421 BCD representation of decimal digit 3 is 0011.
The corresponding 4-bit 8421 BCD representation of decimal digit 2 is 0010.
The corresponding 4-bit 8421 BCD representation of decimal digit 7 is 0111.
Therefore, the 8421 BCD representation of decimal number 5327 is 0101 0011 0010 0111
(ii) Determine the decimal number corresponding to the 8421 BCD code 01001001.
Solution The given 8421 BCD code is 01001001.
To determine the equivalent decimal number, simply divide the 8421 BCD code into sets
of 4-bit binary digits as:
0100 1001
The decimal number corresponding to the binary digits 0100 is 4.
The decimal number corresponding to the binary digits 1001 is 9.
Therefore, the decimal number equivalent to 8421 BCD code 0100 1001 is 49.
Q.2 (i) Convert the binary number 10101101 into its corresponding decimal number.
Solution The given binary number is 10101101.
Now, calculate the sum of the products of each bit multiplied by its place value as:
(1 × 27) + (0 × 26) + (1 × 25) + (0 × 24) + (1 × 23) + (1 × 22) + (1 × 21) + (1 × 20)
= 128 + 0 + 32 + 0 + 8 + 4 + 0 + 1
= 173
Therefore, the binary number 10101101 is equivalent to 173 in the decimal system.
(ii) Convert the binary number 100110 into its octal equivalent.
Ans: The octal equivalent of 100 and 110 is shown below.
100 100
46
Therefore (100110)2 = (46)8
600 ÷ 16 37 8 8
37 ÷ 16 2 5 5
2 ÷ 16 0 2 2
(iii) Convert the octal number 5324 into its equivalent in decimal system.
Solution The given octal number is 5324.
Now, calculate the sum of the products of each digit multiplied by its place value as:
(5 × 83) + (3 × 82) + (2 × 81) + (4 × 80)
= 2560 + 192 + 16 + 4
= 2772
Therefore, the octal number 5324 is equivalent to 2772 in the decimal system.
Q.5 (i) How will you convert CAB in hexadecimal to Binary?
Ans:
CAB16 to Binary
The given hexadecimal number is CAB.
The binary equivalent of each of the digits is shown below.
CAB
1100 1010 1011
Therefore, (CAB)16 = (110010101011)2
(ii) Convert the hexadecimal number A53 into its equivalent in decimal system.
Solution The given hexadecimal number is A53.
Now, calculate the sum of the products of each symbol multiplied by its place value
as:
(10 × 162) + (5 × 161) + (3 × 160)
= 2560 + 80 + 3
= 2643
Therefore, the hexadecimal number A53 is equivalent to 2643 in the decimal system.
(iii) Convert (DA2)16 into the octal number.
Step 1: Convert the hexadecimal number to its binary equivalent.
Hexadecimal numbers are base-16, where each digit is represented by 4 binary bits. We can break down
each digit of (DA2)16 into binary:
(D)16= (1101)2
(A)16= (1010)2
(2)16= (0010)2
(DA2)16= (110110100010)2
Step 2: Group the binary digits into sets of three (for conversion to octal).
To convert binary to octal, group the binary digits in sets of 3, starting from the right. Add leading zeros if
necessary:
(110110100010)2 = 110 110 100 010
Step 3: Convert each group of 3 binary digits to their octal equivalent.
110=6
110=6
100=4
010=2
Step 4: Write the final octal number.
Thus, (DA2)16= (6642)8
Q.6 Convert the following numbers into their binary equivalents:
A. (59)10 B. (EBC)16 C. (654)8
Ans:
A. The conversion of (59)10 into its binary equivalent is shown below:
Q.7 Convert the following numerals into their Binary equivalents: (FAC)16, (561)8.
Ans:
(FAC)16
The given hexadecimal number is FAC.
The 4-digit binary equivalent of each of the digits of the given number is shown below.
FAC
1111 1010 1100
Therefore, (FAC)16 = (111110101100)2
1.69
(561)8
The given octal number is 561.
The 3-digit binary equivalent of each of the digits of the given number is shown below.
561
101 110 001
Therefore, (561)8 = (101110001)2