Answer:
by adding these two numbers the answer is 1 1 0 0 0 1 1 1. Adding two positive numbers doesn't require 2's complement
Step-by-step explanation:
0 1 1 0 1 1 1 0
+ 0 1 0 1 1 0 0 1
1 1 0 0 0 1 1 1
But we use 2's complement only when negative numbers are involved. As the question is not clear and where is the negative number has not been mentioned in the question, I shall explain below what might be the cases:
1. If we have to calculate 01101110-01011001 by 2's complement method
2's complement of 01011001 = 10100110+1 = 10100111
01101110 - 01011001 = 01101110 + 10100111 = 1 0001 0101
2. If given numbers are already 2's complement of some numbers and we have to add original numbers
01101110 is 2's complement of 10010010
01011001 is 2's complement of 10100111
then 10010010+10100111 = 10011 1001 (as our machine is 8 bit so we shall ignore 9th bit)
= 00111001
and notice that 00111001 is 2's complement of 11000111 that is some of two numbers given in the question (-11000111 = 00111000+1 = 00111001)
conclusion: 2'complement(x) + 2's complement(y) = 2's complement(x+y)
NOTE: If x is 2's complement of y then y is 2's complement of x