NUMBER - BASE CONVERSIONS
INTEGER ARITHMETIC

Convert the following decimal numbers to the specified base.

1.    547 to base 16
2.     348 to base 8
3.     243 to binary
4.    647 to base 4
5.    333 to base 3

Convert the following numbers to decimal.

6.    8729
7.    91411
8.    32314
9.    10101103
10.   14205

Perform the indicated base conversions.
11.    5746 = X3
12.    16478 = X15
13.    3608 = X16
14.    59A11 = X9
15.    3516 = X4

For all of the following problems, use 4-digit arithmetic. 

16.    3847 + 2745 (both decimal), using base complement arithmetic.
17.     4A26 - 3972 (both hexadecimal), using base-1 complement arithmetic.
18.    1563 - 3100 (both octal), using base-1 complement arithmetic.
19.    1000 - 1133 (both base 4), using base complement arithmetic.

20. Express the number -15 in six-bit binary, using:
    a. sign-magnitude
    b. base complement
    c. base-1 complement

21. Pick some arbitrary positive number, in the number base of your choice. Represent the negative of that number using base complement and base-1 complement notation. Comment intelligently on the relation between the two representations.
 

Solutions Key

SI - CS191 Home Page