ECE221 Digital Logic Design, Fall, 1999

Homework #1: Binary, Octal, and Hexadecimal Numbers

Due: On-campus: Wed., Sept. 15, 1999; Off-campus: 1 week after receipt.
  1. (conversion to base 10). Convert each of the following numbers into its equivalent form in base 10.
    1. 7578
    2. 11011002
    3. FFA16
    4. 1001000010012
    5. 10008
    6. 100016
  2. (conversion to target base). Convert each of the following base 10 numbers into its equivalent form in the indicated base.
    1. 53 to base 2
    2. 127 to base 8
    3. 1023 to base 16
    4. 500 to base 2
    5. 798 to base 8
    6. 3798 to base 16
  3. (conversion between base 2 and base 8 or base 16). Convert each of the following binary numbers to the indicated base.
    1. 11100112 to base 8
    2. 100111002 to base 16
    3. 10110112 to base 8
    4. 111100112 to base 16
    5. 10010001110001012 to base 8
    6. 111000110011000110002 to base 16
  4. (conversion between base 8 or base 16 and binary). Convert each of the following numbers in the indicated base to binary.
    1. 25028
    2. AFE016
    3. 40778
    4. 407716
    5. 1018
    6. 8FC16
  5. (conversion between base 8 and base 16). Using the same numbers as in the previous exercise, convert the numbers in base 8 to base 16. and the numbers in base 16 to base 8.
  6. (Binary addition). Perform the following additions in binary (where all numbers are given in binary):
    1. 100110 + 111
    2. 110111 + 101
    3. 111110 + 10111
    4. 111001 + 10001
    5. 11011100110 + 10011001
    6. 10101010 + 1111111
  7. (Binary subtraction). Perform the following subtractions in binary (where all numbers are given in binary):
    1. 100110 - 111
    2. 110111 - 101
    3. 111110 - 10111
    4. 111001 - 10001
    5. 11011100110 - 10011001
    6. 10101010 - 1111111
  8. Tocci, p. 51, exercise 2-17.
  9. Tocci, p. 51, exercise 2-19.
  10. Tocci, p. 51, exercise 2-21.
  11. Tocci, p. 51, exercise 2-25.