Tutorial Sheet 2 Digital 1
Tutorial Sheet 2 Digital 1
8. Divide (AF)16 by (09)16 using the method of 'repeared right shift and subtract', bearing in mind the
signs of the given numbers, assuming that we are working in eight-bit 2's complement arithmetic.
9. Carry out the binary and hexadecimal arithmetic operations of the following numbers:
(HINT: Convert each decimal number to its binary and hexadecimal equivalent before operation)
10. Carry out the addition of the following numbers and convert the result to their decimal equivalents
a) 0110110 and 001010 b) 3C4H and BA7H
i) 1010 x 11 ii) 1011 x 101 iii) 1110 x 110 iv) 1010 x 101
11. The result of adding two BCD numbers represented in excess-3 code is 01111011 when the two
numbers are added using simple binary addition. If one of the numbers is (12)10, find the other.
12. Convert the following 8421 BCD numbers to their decimal equivalents
a) 10010000 b) 11111111 c) 0111.0011 d) 01100001.00000101
Give the decimal equivalents if the numbers were represented using 4311 BCD code
13. Convert the following 4221 BCD numbers to their binary equivalents
a) 01011000 b) 000100000000 c) 1001.01110101 d) 0011.0000011000100101
14. Convert the following straight binary numbers to their gray code equivalents
a) 0110 b) 10100 c ) 10101 d) 10110
15. Convert the following excess-3 numbers to their decimal equivalents
16. The following numbers are stored in a computer
17. Write the excess-3 equivalent codes of 610, 7810, 35710 all in 16-bit format.
18. Write a) Hamming (7, 4) code for 0011 using even parity and b) the Hamming (11, 7) code for
1111111 using odd parity