Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2) Let x be the value of the number formed by the rst 4 digits of your LSUid and

ID: 2318804 • Letter: 2

Question

2) Let x be the value of the number formed by the rst 4 digits of your LSUid and let y be the number formed by the last 4 digits of your LSUid. For example if you LSUid is 89-039-20115, then x = 8903 and y = 2015 (use this number for the problem). (a) Determine xy in sign magnitude, one’s complement and two’s complement. Use the minimum number of bits needed to represent xy as a signed number (b) Repeat the previous part for yx. (c) Represent each of the three strings you get in your answer to part (a) of this problem into octal and hexadecimal

Explanation / Answer

4 bit decimal number can be represented in 15 bit (including 1 sign bit)

Part a:

Sign magnitude

x = 8903 = 010001011000111

y = 2015 = 000011111011111

x- y = 0011010111010002 = 153508 = 1AE816

y - x = 101101011101000 = 553508 = 5AE816

1's complement form

x = 8903 = 010001011000111

y = 2015 = 000011111011111

x- y = 0011010111010002 = 153508 = 1AE816

y - x = 1100101000101112 = 624278 = 651716

1's complement form

x = 8903 = 010001011000111

y = 2015 = 000011111011111

x- y = 0011010111010002 = 153508 = 1AE816

y - x = 1100101000110002 = 624308 = 651816

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote