0% found this document useful (0 votes)
107 views

COMP 2650 Winter 2020 Lab 1: Base 12

1. The document provides instructions for 10 problems involving number bases conversion between decimal, binary, octal, and hexadecimal. It asks the student to convert between different number bases, calculate 1's, 2's, 9's and 10's complements, and perform subtraction using complement notation. 2. Some examples include listing octal and hex numbers from 16 to 32, converting between bases like (53)8 to decimal, and subtracting binary or decimal numbers using complement notation. 3. The problems increase in complexity, starting with direct conversions and building up to multi-step conversions and using complements for subtraction in different number bases.

Uploaded by

quickreader12
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
107 views

COMP 2650 Winter 2020 Lab 1: Base 12

1. The document provides instructions for 10 problems involving number bases conversion between decimal, binary, octal, and hexadecimal. It asks the student to convert between different number bases, calculate 1's, 2's, 9's and 10's complements, and perform subtraction using complement notation. 2. Some examples include listing octal and hex numbers from 16 to 32, converting between bases like (53)8 to decimal, and subtracting binary or decimal numbers using complement notation. 3. The problems increase in complexity, starting with direct conversions and building up to multi-step conversions and using complements for subtraction in different number bases.

Uploaded by

quickreader12
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

COMP 2650 Winter 2020 Lab 1

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

8. (a) Find the 16’s complement of C3DF.


(b) Convert C3DF to binary.
(c) Find the 2’s complement of the result in (b).
(d) Convert the answer in (c) to hexadecimal and compare with the answer in (a). What
do you find?

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

You might also like