Perform the following operation in the Signed 2’s complement system. Use eight bits for each number. Check your results by converting the binary result back to decimal. Please show all the steps, also please type steps and answer no picture upload from written work please
Add +68 to -45
Solution:-
======================
Convert 68 to binary
In Eigth Bit 01000100 here sign og 68 is + so no conversion needed
Convert 45 to binary
in eight bits 00101101 Here sign of 45 is negative so conversion needed
1's complement of 00101101 = 11010010
2's complement = 11010010 + 1 =11010011
Add 01000100 and 11010011
01000100 + 11010011 = 00010111
Decimal value of 00010111
Hence our solution is correct
Get Answers For Free
Most questions answered within 1 hours.