Computer Science APEA 15-100, Summer 2009
Homework 1
Due:  Tue 30-Jun-2009 at 8:59am (email copy
and identical physical copy)
(no late submissions accepted).


Read these instructions first!


  1. Convert 10110 from two's complement to decimal.  Remember:  show your work on all of these problems!
  2. What are the largest and smallest possible numbers in 6-bit two's complement?
  3. Explain why -1 has the representation it has in two's complement.
  4. Explain why the Hash<31,4> code for "abcd" is 7074.
  5. Find your own andrew id's hash code.
  6. How long will it take to transfer all of the contents of the library of congress over 56 kilobits/sec? You may round your answer.
  7. Say it takes one year to run a simulation of a nuclear explosion on your smartphone. About how many years will it take until the same simulation requires only one minute on a new model of the smartphone?

Carpe diem!