De Assignment 2
De Assignment 2
Assignment 2
TU
g. 0.11100
2. Determine the binary numbers represented by the following decimal numbers:
a. 37
b. 15
c. 11.75
d. 255
e. 26.25
f. 0.1
BA
g. 54.68
3. Add the following group of binary numbers:
a. 1011 + 1101
b. 1010.1101 + 101.01
c. 11111111 + 11010011
4. Perform the following subtractions using 2’s complement method:
a. 01000 - 01001
b. 01100 - 00011
c. 0011.1001 - 0001.1110
D
5. Convert the following numbers from decimal to octal and then binary. Compare the
binary numbers obtained with the binary numbers obtained directly from the decimal
numbers.
a. 375
b. 249
c. 27.125
6. Convert the following binary numbers to octal and then to decimal numbers. Compare the
decimal numbers obtained with decimal numbers obtained directly from the binary
numbers.
a. 11011100.101010
b. 01010011.010101
c. 10110011
7. Convert the following numbers from decimal to hexadecimal and then to binary.
Compare the binary numbers obtained with the binary numbers obtained directly from the
decimal numbers.
a. 375
b. 249
c. 27.125
8. Convert the following binary numbers to hexadecimal and then to decimal numbers.
TU
Compare the decimal numbers obtained with decimal numbers obtained directly from the
binary numbers.
a. 11011100.101010
b. 01010011.010101
c. 10110011
9. Encode the following decimal numbers in BCD code and excess-3 code.
a. 46
b. 327.89
BA
c. 20.305
10. Encode decimal number 46 to gray code.
11. Find the number and positions of parity bits to be added to construct Hamming code for
an 8-bit data word.
12. Determine Hamming code sequence with odd parity for natural BCD for making it and
error correcting code.
13. For ASCII code words 1010010 and 1010000
a. Determine the distance between them
b. Determine Hamming code words and distance between them
D
14. Construct Hamming code words for the following 8-bit words:
a. 10101010
b. 00000000
c. 11111111
15. For some 8-bit data words, the following hamming code words are received. Determine
the correct data words. Assume even parity checks.
a. 000011101010
b. 101110000110
c. 101111110100