Tutorial 1-NumberSys
Tutorial 1-NumberSys
2. Convert the following binary numbers to their octal and hexadecimal equivalents.
Then convert both of your answers to decimal and verify that they are the same.
(a) 111010011
(b) 11111110.0001
6. Subtract in binary.
(a) 11010 - 10111
(b) 10110010 - 111101
7. Use binary multiplication, adding partial products as they are formed, to find:
(a) 10111 110010
(b) 11001 1011011
Change to decimal and confirm the answers.
1
9. Compute the following numbers in the format of sign-and-magnitude, 1’s
compliment and 2’s complement using 12-bit representation.
(a) 478
(b) -280
(c) -2
10. A computer store numbers in 8-bit 2’s complement form. What is the largest
positive number? What is the negative number with the largest magnitude?
11. Use 2’s complement notation to perform the following. Assume that the numbers
are already in 2’s complement form.
(a) 001111 – 001011
(b) 00110011 – 11100101
(c) 11100011 + 11111010
12. Add the following numbers, with those negative represented in 6-bit 2’s
complement. Indicate if an overflow occurs.
(a) 21 + 11 (b) (-14) + 32 (c) (-12) + 13
(d) (-11) + (-21) (e) (-25) + 18
Repeat using 1’s complement to represent negative numbers.
16. Determine whether the following odd parity codes are in error.
(a) 11110110 (b) 00110001