Hello World - Spring 2007

Homework 5

Attempt by: Monday, February 26
Due by: Thursday, March 1

Reading

Practice Problems (not to turn in)

The following problems will give you extra practice, and are strongly recommended, but you don't need to turn them in. Solutions are given on pages 688-693, but don't look at the answers until you have tried working through them on your own.

Problems To Hand In

  1. From the textbook: exercises 1 and 3, page 184. Show your work.

  2. Convert each of the following decimal numbers to binary and hexadecimal. Show your work.

        31    128    219
    
  3. From the textbook: exercises 4(c), 5, 6, and 7, page 184. Show your work.

  4. Fill in the table below to show how each sequence of eight bits can be interpreted in different ways. The first row is filled in as an example. For the column labeled "ASCII", show the character that corresponds to the last seven bits of each sequence. (Hint: See figure 4.3 on page 141.)

    hexadecimalASCIIunsignedsign/magnitudetwo's complement
    11000001 C1 A 193 -65 -63
    01111100      
    11111110      
    11011011      
  5. From the textbook: exercises 15 and 16, page 184. Show your work.

  6. From the textbook: exercise 18, page 185. Show your work.