Due: Wednesday 11/20 10:00am

Submission name: work23.txt

Write your answers to the following questions in a plain text file (with a .txt extension). If you are not certain how to create a plain text file here are some suggestions:

Here are the questions, you could google them, but you can also answer them with the main principles of different base arithmetic we’ve discussed in class, notably:

  • The digits in any base are 0 -> (base - 1).
  • We use letters if the base is greater than 10.
  • Each digit in a number represents that digit times a power of the base (starting at the 0 power going right to left).

Questions:

  1. What is the largest 8 digit binary number?
  2. What is the smallest 9 digit binary number?
  3. What is the decimal value of the largest 8 digit binary number?
  4. What is the largest 3 digit hexadecimal number?
  5. What is the smallest 4 digit hexadecimal number?
  6. What is the decimal value of the largest 3 digit hexadecimal number?
  7. What is the largest 1 digit hexadecimal number?
  8. What is the largest 1 digit hexadecimal number in binary?
  9. How many bits would you need to represent a 1 digit hexadecimal number?
  10. What would the binary representation of the third digit of the hexadecimal number DEAD16
  11. A (bad) computer science joke goes something like this:

    There are 10 types of people in the world; Those that understand binary, and those that don’t.

  • Explain the joke.
    1. (bonus round) Another computer science joke:

      Why do computer programmers celebrate Christmas on Halloween? Because Oct31 = Dec25

  • Explain the joke (half of it is decimal, the other half is a different base, neither binary nor hexadecimal).