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

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
1. Obtain the 1’s complement, 2’s complement and sign magnitude system representation in 7 bits for...
1. Obtain the 1’s complement, 2’s complement and sign magnitude system representation in 7 bits for the following decimal numbers: a) 1510 b) -2110 c) 3510 d) -2710 2. Use 1’s and 2’s complement system to perform the following calculations and mention if there will be overflow or not: a) 1100 – 0101 b) 1010 + 0100 c) 01100 + 00111
Please show all work: Determine the 2’s complement equivalent of the following numbers in 8-bit format...
Please show all work: Determine the 2’s complement equivalent of the following numbers in 8-bit format (N.B: You must show your work for full credit)! -12 = -9 =
1.convert the following numbers from decimal to binary assuming seven-bit twe's complement binary representation: a)49 b)...
1.convert the following numbers from decimal to binary assuming seven-bit twe's complement binary representation: a)49 b) -27 c)0 d) -64 e) -1 f) -2 g) what is the range for this computer as written in binary and in decimal? 2.convert the following numbers from decimal to binary assuming nine-bit twe's complement binary representation: a)51 b) -29 c) -2 d)0 e) -256 f) -1 g ) what is the range for this computer as written in binary and in decimal?
1. What is the two’s complement of: 00110101 2. Carry out the following calculation using 8-bit...
1. What is the two’s complement of: 00110101 2. Carry out the following calculation using 8-bit signed arithmetic (convert to 8-bit binary sequences) and use two’s complement for the negative number, give the result as both an 8-bit binary sequence and in base 10: 127 – 74. 3. What does shifting a binary sequence to left by 3 places correspond to (from the arithmetic standpoint)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT