Express the decimal number (25)10 as an 8-bit unsigned binary number.
Express the decimal number (-37)10 as an 8-bit sign-magnitude binary number.
Express the decimal number (-37)10 as an 8-bit 1's complement binary number.
Answer 1 ->
Divide the number repeatedly by 2:
Keep track of each remainder.
We stop when we get a quotient that is equal to zero.
25(10) = 00011001(2)
Answer 2 -->
37(10) = 00100101(2)
then sign-magnitude of -37(10) is 100100101(2) .
In sign magnitude represent as positive integer in binary but if number is negative then MSB bit 1 , else number is positive then MSB bit 0.
Answer 3 -->
37(10) = 00100101(2)
To get the negative integer number representation on 8 bits, signed binary one's complement, replace all the bits on 0 with 1s and all the bits set on 1 with 0s (reverse the digits, flip the digits).
so 1's complement of 00100101(2) = 11011010(2)
Get Answers For Free
Most questions answered within 1 hours.