Assignment 2 (Assigned August 25)



  • 1. Suppose you want to represent positive integers in binary. Indicate how many bits are required to represent each of the following sets of integers:

  • (1) The integers from 0 to 127 inclusive
    (2) The integers from 0 to 2,048 inclusive
    (3) The integers from 0 to 32,500 inclusive
    (4) The integers from 0 to 1,500,345 inclusive
  • 2. Indicate how large a value can be represented by each of the binary quantities: A (1) 4-bit, (2) 12-bit, and (3) 24-bit quantity.
  • 3. Convert each of the following binary digits into decimal. Assume these quantities represent unsigned integers.

  • (1) 1010;  (2) 10010; (3) 0111110; (4) 10000000; (5) 0111111
  • 4. Convert each of the following decimal numbers into binary.

  • (1) 6; (2) 13; (3) 111; (4) 147; (5) 511