2081 5

BIT101 · 2081 · 5 marks

Add number +7 and -17 using 2's complement method.

Add number +7 and -17 using 2's complement method. [5]

Introduction to Information TechnologyChapter 2: Number Systems and Data RepresentationTwo's complement method for signed numbersNumerical: 2's complement addition
  • First number: $+7$ - Second number: $-17$ - Method: 2's complement addition - Using 8-bit representation (needed since $17$ requires 5 bits, plus sign bit). $+7$: $$+7 = 0000\ 0111$$ $+17$ (magnitude of the negative number): $$+17 = 0001\ 0001$$ 1's complement of $0001\ 0001$ (invert all bits):...