Computer Science, asked by rohanmathias3674, 8 months ago

Subtract the following by 1's complement.i) 11010–1101.ii)101–110000

Answers

Answered by ArianneHester
7

Answer:

the answers are as follows:-

i). subtraction of (11010) from (1101) using one's complement:-

   (1 1 0 1) = (0 1 1 0 1)

   one's complement of (0 1 1 0 1) = (1 0 0 1 0)

   on adding (1 1 0 1 0) and (1 0 0 1 0)

     1  1   0  1  0

  + 1  0  0  1  0

    --------------------

  1  0  1  1  0  0

  as there is an end around carry we do the following:-

  0  1  1  0  0

  +               1

 ---------------------

  0  1  1  0  1 => (0 1 1 0 1)  i.e +13 is the required answer

ii). subtraction of (101) from (110000) using one's complement:-

    (1 0 1) = (0 0 0 1 0 1)

    one's complement of (1 1 0 0 0 0) = (0 0 1 1 1 1)

    on adding (0 0 0 1 0 1) and (0 0 1 1 1 1)

    0 0 0 1 0 1

 + 0 0  1 1  1 1

 -----------------------

    0 1  0 1 0 0

   as there is no end around carry take one's complement of the result again

   and finally add a minus sign

   one's complement of (0 1 0 1 0 0) = (1 0 1 0 1 1)

   i.e   - (1 0 1 0 1 1) is the required answer.

For Reference:

please visit the following for similar queries:

for more info about operations on binary numbers

https://brainly.in/question/8331839

for info about two's complement

https://brainly.in/question/4121073

Answered by mk1012
3

Answer:

11011

Explanation:

1101+1

adding 1 to the number

we get: 00101

then we should subtract the numbers

11010-00101

11011

is the answer for the subtraction 1's complement

Similar questions