Due: Friday, Feburary 15, at start of class
Collaboration: Each student must work on and submit the assignment individually. Note: working with the peer mentor is acceptable.
1. Convert the decimal number -7 to the equivalent signed magnitude representation, in which numbers are stored using 5 bits. Show your work.
2. Convert the decimal number -9 to the equivalent one’s complement representation, in which numbers are stored using 5 bits. Show your work.
3. Convert the decimal number -12 to the equivalent two’s complement representation, in which numbers are stored using 5 bits. Show your work.
4. Convert the 5 bit binary number 11011 represented in signed magnitude representation to the equivalent decimal representation. Show your work.
5. Convert the 5 bit binary number 10101 represented in ones’s complement to the equivalent decimal representation. Show your work.
6. Convert the 5 bit binary number 11011 represented in two’s complement to the equivalent decimal representation. Show your work.
7. Perform the following additions, assuming the numbers are given in two’s complement notation, with numbers stored using 5 bits. Show your work. For each problem specify whether the result is incorrect due to overflow.
(a)
01101
+00100
(b)
11101
+10110
