Computer Science 111 - Homework 2

Due Monday, January 27

  1. Convert the following binary numbers to decimal

    a. 110101

    b. 1101.101 (Hint: Think of the decimal system and what the positions to the right of the decimal point mean.)

  2. Convert the following decimal numbers to binary

    a. 432

    b. 78.5625 (Hint: Do the whole number part as before. For the fractional part, find highest negative power of 2 less than or eqal to the number, etc.)

  3. Suppose a certain computer has memory addresses that are 32 bits long. What is the maximum number of megabytes of memory that the machine could possibly have? Explain.