Homework 2, Representation.
Goals
When you finish this homework, you should have:- Demonstrate you knowledge of different representation systems.
Formal Description
Do the following- Two's-complement representation
Represent each of the following as a 8-bit two's-complement integer.- -5
- -12
- 64
- -128
- Two's-complement representation
- What is the range of numbers for a 4-bit two's-complement integer?
- What is the range of numbers for a 7-bit two's-complement integer?
- What is the range of numbers for a n-bit two's-complement integer?
- Two's-complement overflow
Using 8 bit two's-complement calculate 127 + 1- Write 127 in binary.
- Perform the addition.
- Interpret the resulting 8-bit pattern as a signed integer.
- Did the mathematical answer fit in 8-bit two's complement?
- Explain what went wrong.
- Explain how you can detect that something went wrong.
- Parity
In an even parity system the message sent is 10111000 and the receiver gets 10110100- The received message is different from the original. How many bits changed?
- Does the even-parity check detect the error? Explain why or why not.
- RAID:
Suppose a RAID system has the following
Assume RAID level 5, or drive 3 is used for parity.Drive Byte 1 1 10110011 2 01101001 - Compute the value stored at Byte 1 of drive 3
- Assume the data on drive 1 is lost, show the computation to recover that data.
- Why is XOR particularly useful in this computation?
- Representation
Consider 11110110. Determine the value of this bit pattern in:- Unsigned Binary7
- Sign-magnitude
- 9-bit two's complement.
- 8-bit two's complement.
- ASCII
Notes:
This homework was designed with the assistance of chatGPT. I submitted the notes pages and it provided some suggestions for questions.As I have done, if you work in a group or use AI, you are required to state this. In addition, you are required to state the percentage of the work you had AI do for you.