2 Let x be the value of the number formed by the rst 4 digit

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

Solution

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

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 y

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site