4 Find the 1s and 2s complements of the following binary num
4. Find the 1s and 2s complements of the following binary numbers: (a) 10010 (b) 110010 (c) 1102.1100 (d) 111010.0011(e) 1002.0001 (f) 110100.0100 (g) 1010110.111 Show your work.
Solution
[1] 10010
1s complements --> 01100 ( inverting the 0s & 1s of a given binary number)
2s complements --> +1
-----
1101
-----
[2] 110010
1s complements --> 1101 ( inverting the 0s & 1s of a given binary number)
2s complements --> +1
------
1110
------
[3] 1102.1100 not a binary number ( 0 & 1 concider as Binnary Number)
[4] 111010.0011
1s complements --> 111111.1111
- 111010.0011
--------------
000101.1100
----------------
2s complements --> 2^6 - 111010.0011
01000000.0000
- 111010.0011
---------------
100101.1100
---------------
[5] 1002.0001 not a binary number ( 0 & 1 concider as Binnary Number)
[6] 110100.0100
1s complements --> 111111.1111
- 110100.0100
--------------
1011.1011
----------------
2s complements --> 2^6 - 110100.0100
01000000.0000
- 110100.0100
---------------
101011.1100
---------------
[7] 1010110.111
1s complements --> 1111111.111
- 1010110.111
--------------
101001.000
----------------
2s complements --> 2^7 - 1010110.111
10000000.000
- 1010110.111
---------------
1101001.111
---------------

