Ask Question
5 August, 17:22

For each of the following pairs of signed integers (2's complement), subtract the second from the first. Show the decimal equivalents of each operand and the difference, Indicate overflow where appropriate a) 111010 001111

b) 000100 011000

c) 010001 011010

d) 010000 100100

+4
Answers (1)
  1. 5 August, 20:22
    0
    The answers are

    a) 111010 - 001111 = 101011 = 43

    b) 000100 - 011000 = 111111111 (overflow) = - 20

    c) 010001 - 011010 = 11111111 (overflow) = - 9

    d) 010000 - 100100 = 1111111 (overflow) = - 20

    Step-by-step explanation:

    a) 111010 = 1*2⁵+1*2⁴+1*2³+0*2²+1*2¹+0*2⁰ = 32+16+8+0+2+0 = 58

    001111 = 0*2⁵+0*2⁴+1*2³+1*2²+1*2¹+1*2⁰ = 8+4+2+1=15

    111010 - 001111 = 101011 = 43

    b) 000100 = 0*2⁵+0*2⁴+0*2³+1*2²+0*2¹+0*2⁰ = 4

    011000 = 0*2⁵+1*2⁴+1*2³+0*2²+0*2¹+0*2⁰ = 24

    000100 - 011000 = 1111111111 (overflow), 4 - 24 = -20

    c) 010001 = 1*2⁴+1*2⁰ = 17

    011010 = 1*2⁴+1*2³+1*2¹ = 26

    010001 - 011010 = 11111111 (overflow) 17-26=-9

    d) 010000 = 1*2⁴ = 16

    100100 = 1*2⁵+1*2² = 36

    010000 - 100100 = 1111111 (overflow) 16-36=-20
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “For each of the following pairs of signed integers (2's complement), subtract the second from the first. Show the decimal equivalents of ...” in 📘 Mathematics if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers