COMP 2650 Winter 2020 Lab 1: Base 12
COMP 2650 Winter 2020 Lab 1: Base 12
1. List the octal and hexadecimal numbers from 16 to 32. Using A and B for the last two digits,
list the numbers from 8 to 28 in base 12.
2. Convert the following number with the indicated bases to decimal: (53)8
3. Convert the decimal 431 to binary in two ways: (a) convert directly to binary; (b) convert first
to hexadecimal and then from hexadecimal to binary.
4. Express the following numbers in decimal: (a) (45.67)8 (b) (𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴. B)16
5. Convert the following binary numbers to hexadecimal and to decimal: (a) 1.10010, (b)
110.010. Can you explain why the decimal answer in (b) is 4 times that in (a).
6. Obtain the 1’s and 2’s complements of the following binary numbers:
(a) 00010000 (b) 00000000 (c) 11011010 (d) 10101010
(e) 10000101 (f) 11111111
7. Find the 9’s and the 10’s complement of the following decimal numbers:
(a) 25,478,036 (b) 63,325,600
(c) 25,000,000 (d) 00,000,000
9. Perform subtraction on the given unsigned numbers using the 10’s complement of the
subtrahend. Where the result should be negative, find its 10’s complement and affix a minus
sign. Verify your answers using calculator if needed.
(a) 4,637 – 2,579 (b) 125 – 1,800
(c) 2,043 – 4,361 (d) 1,631 – 745
10. Perform subtraction of the given unsigned binary numbers using 2’s complement of the
subtrahend. Where the result should be negative, find its 2’s complement and affix a minus
sign. (you can always convert all the given binary number to decimal to verify your
caluclations.)
(a) 10011 – 10010 (b) 100010 – 100110
(c) 1001 – 110101 (d) 101000 - 10101