Perforum subtraction on given unsigned binary numbers using 2\'scompliment of su
ID: 1831535 • Letter: P
Question
Perforum subtraction on given unsigned binary numbers using 2'scompliment of subtrahend. Where the result should be negative, fineits 2's complement and affix a minus sign1) 1001-101000
2) 110000-101000
Also, this is in same question 100010-100011. Why is that this usessign extension but 10011-10001 does not? I have the answers to bothof these which both are under this question I presented but I can'tunderstand why sign extension is used on one and not the other.Same with problem 1 and 2. Problem 2 shows sign extension beingused.
Explanation / Answer
1) 1001 - 101000 0 0 1 0 01 00 1 0 0 1 - 1 0 1 0 0 0 2'scomplement 0 1 1 0 0 0 ------------- ---------------- Add 10 0 0 01 Theanswer is in 2's complement Take2's complement 0 1 1 1 1 1 Answer is - 0 1 1 1 1 1 2) 110000 - 101000 1 1 0 0 00 11 0 0 0 0 - 1 0 1 0 0 0 2'scomplement 0 1 1 0 0 0 --------------- -------------- Add 10 0 1 0 0 0 | | Neglectthe End Around Carry Answer is 0 0 1 0 0 0Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.