Complete the following table by converting the integers in d
Solution
P2)
a)-15
the unsigned binary value of 15=01111
sign and magnitude= (11111)2
1\'s complement=(10000)2
2\'s complemnt=(10001)2
b)
-15
the unsigned binary value of 10=01010
sign and magnitude= (11010)2
1\'s complement=(10101)2
2\'s complemnt=(10110)2
c)-1
the unsigned binary value of 1=00001
sign and magnitude= (10001)2
1\'s complement=(11110)2
2\'s complemnt=(11111)2
d)0
the unsigned binary value of 0=00000
sign and magnitude= (00000)2
1\'s complement=(00000)2
2\'s complemnt=(00000)2
e)7
the unsigned binary value of 15=00111
sign and magnitude= (00111)2
1\'s complement=(00111)2
2\'s complemnt=(00111)2
p3)
a)10011-->11100(1\'scomplemnt)
b)10011-->11101(2\'scomplement)
c)11000-->10111(sign magnitude)
d)11000-->11001(2\'scomplement)
e)101110-->110010(sign magnitude)
f)101110-->101101(1\'s complement)

