CS100 - Assignment 1 (Number systems)

(Section 001, Fall 2007)

The questions carry equal weight. Please show the computations leading to the result. Show all your work for full credit!

  1. Convert the following unsigned binary numbers to a decimal base: 011011, 001001

  2. Convert the following decimal numbers to a binary base: 33, 44

  3. Convert the following unsigned binary numbers to a hexadecimal base: 01101101, 0010010111

  4. Convert the following hexadecimal numbers to a binary base: 0xEA5D, 0x11A

  5. In the following perform addition of unsigned binary numbers. Solve each problem and convert your result to a decimal base for verification:
          (a) 0101     (b)1101     (c)0111     (d)0111
             +0001       +1110       +1000       +1010
              ----        ----        ----        ----
    

  6. In the following perform subtraction of unsigned binary numbers. Solve each problem and convert your result to a decimal base for verification:
          (a) 0101     (b)1101     (c)0101     (d)0111
             -0001       +0110       +0010       +0010
              ----        ----        ----        ----
    



Gady Agam 2007-08-28