43 views
(a) Assume the integers below are 1’s complement integers. Find the 1’s complement
of each number, and give the decimal values of the original number and of
its complement.
(i) 0000000 (ii) 1111111 (iii) 00110011 (iv) 1000000
(b) Repeat part (a) assuming the numbers are 2’s complement numbers and finding
the 2’s complement of them.
| 43 views

Assume the integers below are 1’s complement integers.

i)  0000000  -----> MSB bit is 0 ==> positive number

decimal value of original number = 0

1's complement of given number is = 1111111 , Note that this is belongs to 1's complement representation, So it's decimal equivalent is -0.

(ii) 1111111 -----> MSB bit is 1 ==> negative number

decimal value of original number = -0

1's complement of given number is = 0000000 , Note that this is belongs to 1's complement representation, So it's decimal equivalent is 0.

(iii) 00110011  -----> MSB bit is 0 ==> positive number

decimal value of original number = 51

1's complement of given number is = 11001100 , Note that this is belongs to 1's complement representation, So it's decimal equivalent is -51.

(iv) 1000000  -----> MSB bit is 1 ==> negative number

decimal value of original number = -111111 = -63

1's complement of given number is = 0111111 , Note that this is belongs to 1's complement representation, So it's decimal equivalent is 63.

hope you can do for part b :)

by Veteran (65.8k points)