Introduction to Information Technology20815 marksNumerical: 2's complement additionTwo's complement method for signed numbers
Add number +7 and -17 using 2's complement method.
Add number +7 and -17 using 2's complement method. [5]
- 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):...