5. Represent the following decimal numbers in binary using 8-bit signed magnitude,one’s complement, and two’s complement:
a) 77
b) -42
c) 119
d) -107
a) signed magnitude representation of 77 is 01001101
1's complement representation of 77 is 01001101
2's complement representation of 77 is 01001101
b) signed magnitude representation of -42 is 10101010
1's complement representation of -42 is 11010101
2's complement representation of -42 is 11010110
c) signed magnitude representation of 119 is 01110111
1's complement representation of 119 is 01110111
2's complement representation of 119 is 01110111