Homework 2, More Numbers
Short Description:
Demonstrate your knowledge of signed integer representation.
Goals
When you finish this homework, you should have:
- Shown that you can represent signed integers
Formal Description
- [2 points each]
- Represent 23 and -23 in 5 bit sign magnitude, state any assumptions
- Represent 23 and -23 in 5 bit two's complement
- [4 points] Demonstrate the computation -8 - 3 in two's complement. Show all work.
- [4 points] Describe how overflow can be detected in two's complement math.
- [4 points] Describe the advantages of two's complement over sign magnitude when representing signed integers in a digital computer.
- [2 points] What is the range of numbers that can be represented in n bit two's complement?
- [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.