Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Perform the arithmetic operations (+36) + (-24) and (-35) - (-24) in binary usin

ID: 3810471 • Letter: P

Question

Perform the arithmetic operations (+36) + (-24) and (-35) - (-24) in binary using signed 2's complement representation for negative numbers. A) Please write down the 2's complement representation for +36, -24, and -35, respectively. B) Please calculate (+36) + (-24) in binary using signed 2's complement representation for negative numbers. Note that directly giving a result in binary without any calculation steps will receive zero point. C) Please calculate (-35) - (-24) in binary using signed 2's complement representation for negative numbers. Note that directly giving a result in binary without any calculation steps will receive zero point.

Explanation / Answer

Solution:

A)

2's complement representation

36(10)= 00100100(2)

(-24)(10)= 11101000(2)

(-35)(10)= 11011101(2)

B)

36(10)= 00100100(2)

(-24)(10)= 11101000(2), this is in 2's complement, now both will be added.

00100100
11101000
-------------
1 00001100
--------------, 1 is carry over so we will just ignore that by 2's complement subtraction rules and rest will be our result.

C)

11011101
00011000, 2's complement of 11101000
------------
11110101
------------, no carry is generated this means the result is negative, now we need to perform 2's complement operation on the result as per 2's complement subtraction rules.

so the result will be 00001011, in negative which is -9 in decimal.

I hope this helps. Don't forget to give a thumbs up if you like this.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote