Homework 2, More Numbers

Short Description:

Demonstrate your knowledge of signed integer representation.

Goals

When you finish this homework, you should have:

Formal Description

  1. [2 points each]
    1. Represent 23 and -23 in 5 bit sign magnitude, state any assumptions
    2. Represent 23 and -23 in 5 bit two's complement
  2. [4 points] Demonstrate the computation -8 - 3 in two's complement. Show all work.
  3. [4 points] Describe how overflow can be detected in two's complement math.
  4. [4 points] Describe the advantages of two's complement over sign magnitude when representing signed integers in a digital computer.
  5. [2 points] What is the range of numbers that can be represented in n bit two's complement?
  6. [2 points] What is the range of numbers that can be represented in n bit binary (positive numbers only). Relate this answer to the answer to the previous question.

Required Files

A single word document containing the answers.

Submission

Submit the assignment to the D2L folder homework 2 by the due date.