CPSC 110-08: Computing with Mobile Phones

Homework 4: Decimal, Binary, and Hex
Due: Wednesday 9/21 (before class)

Details

This homework consists of the exercises at the end of Monday's Abstraction Lecture. For convenience they are reproduced here:

Your answers to these exercises should be posted on your portfolio. Show your work. If you do these by hand, paper and pencil, you could take a photo of your paper and post that on your page.

  1. Convert the following numbers to decimal notation.
    1. The binary number 111.
    2. The binary number 1011.
    3. The binary number 1011 1011.
    4. The hex number 61.
    5. The hex number DA.
    6. The hex number FEE.
  2. Convert the following numbers as indicated.
    1. Convert the following 12 to binary.
    2. Convert the following 44 to binary.
    3. Convert the following 254 to hex.
    4. Convert the following 16 to hex.
  3. Challenge: Convert 125 to octal notation.
Principles addressed: Abstraction: The students learn binary numbers. Data/algorithm: Students learn conversion algorithms.