Question

In: Computer Science

Represent -34 and +67 in the following way: a) 8 bit 1's complement representation.

Represent -34 and +67 in the following way:

a) 8 bit 1's complement representation.

Solutions

Expert Solution

For the first question, -34 to find the 1'complement

We have to find the binary number of 34 (i.e) 100010 this is 6 bit. Inorder to represent it in 8 bit representation and while dealing with signed integers the left most bit in 8 bit representation represents the sign of the integer (i. e) 0 for positive integer and 1 for negative integer.

So for, 34 -> 00100010. The left most bit 0 represent it as positive number.

So -34 is represented as 10100010. The left most bit is 1 because it is negative number.

Now, take 1's complement of 34, convert 0 to 1 and 1 to 0.

11011101. Here the left most bit should be 1 since it is a negative number. This is the 8 bit representation of 1's complement of -34.


Related Solutions

1) Represent -34 and +67 in the following ways: a) 8 bit sign and magnitude representation...
1) Represent -34 and +67 in the following ways: a) 8 bit sign and magnitude representation with MSB as sign bit. b) 8 bit 1’s complement representation. c) 8 bit 2’s complement representation. 2) Convert the decimal numbers 40 and 20 into 8-bit unsigned binary representation and add the two numbers.
Represent the following numbers in binary 8-bit representation using singed magnitude, one's complement, two's complement, and...
Represent the following numbers in binary 8-bit representation using singed magnitude, one's complement, two's complement, and excess-127 representations: a) 48 b) -35
Convert -18 to 8-bit sign magnitude, 1's complement and 2's complement.
Convert -18 to 8-bit sign magnitude, 1's complement and 2's complement.
Convert -18 to 8-bit sign magnitude, 1's complement and 2's complement.
Convert -18 to 8-bit sign magnitude, 1's complement and 2's complement.
Convert -18 to 8-bit sign magnitude, 1's complement and 2's complement.
Convert -18 to 8-bit sign magnitude, 1's complement and 2's complement.
Convert -122 to 8-bit sign magnitude, 1's complement and 2's complement
Convert -122 to 8-bit sign magnitude, 1's complement and 2's complement
Convert -122 to 8-bit sign magnitude, 1's complement and 2's complement
Convert -122 to 8-bit sign magnitude, 1's complement and 2's complement
Convert -122 to 8-bit sign magnitude, 1's complement and 2's complement
Convert -122 to 8-bit sign magnitude, 1's complement and 2's complement
6) What is the 6-bit 1's complement representation of -1710? Write your answer in the format...
6) What is the 6-bit 1's complement representation of -1710? Write your answer in the format 0bXXXX... Where X's are binary digits. Include leading 0's (zeroes). 7)  What is the 6-bit sign-magnitude representation of -1710? Write your answer in the format 0bXXXX... Where X's are binary digits. Include leading 0's (zeroes). 9)  What is the 8-bit 1's complement representation of 1710? Write your answer in the format 0xHHHH... Where H's are hexidecimal digits. Include leading 0's (zeroes). Write hexidecimal digits, A-F, in...
convert -97 to 8-bit sign-magnitude, 1's complement, 2's complement and excess-127. Please be careful and explain...
convert -97 to 8-bit sign-magnitude, 1's complement, 2's complement and excess-127. Please be careful and explain all the steps and details.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT