I'm studying for a Java test...
6. [18 pts] Assuming 4-bit integer arithmetic add the negative numbers -3 and -6 and explain the result. Do this in steps: write down the binary representations of 3 and 6, convert them to their two’s complement negatives (using one’s complement as an in between step if you want), add the results, and explain the result.
I can do the binary fine..but how to do you convert to two's complemnet negatives?
2007-09-23
16:55:39
·
3 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
thanks, but you just overly complicated it.
I can get the two compliments:
1010 and 1101
but when i add them i dont get 9...whats wrong?
2007-09-23
17:26:19 ·
update #1