question archive Perform the arithmetic operations (+42) + (-13) and (-42) - (-13) in binary using signed-2's complement representation for negative numbers

Perform the arithmetic operations (+42) + (-13) and (-42) - (-13) in binary using signed-2's complement representation for negative numbers

Subject:Computer SciencePrice:3.87 Bought7

Perform the arithmetic operations (+42) + (-13) and (-42) - (-13) in binary using signed-2's complement representation for negative numbers.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Answer Preview

Answer:

OPERATION 1

EXPLANATION:

BINARY REPRESENTATION OF 42 is 101010 (6 bit)

BINARY REPRESENTATION OF 13 is 001101(6 bit)

2's complement of 13 in 6 bit is

001101 converted to 110010(1's complement)

110010 + 1 = 110011

hence 2's complement of 13 in 6 bit is 110011.

if carry is 1 then the number is positive.

OPERATION 2 

EXPLANATION

2'S complement of 42 is calculated as

binary of 42 converted in 1's complement then 1 is added :

101010 converted to 010101 then after addition of 1 converted into 010110.

please use this google drive link to download the answer file.

https://drive.google.com/file/d/1L5MAOk4bTYDAFRfz6iguYLW8HbtEQcZQ/view?usp=sharing

note: if you have any trouble in viewing/downloading the answer from the given link, please use this below guide to understand the whole process.

https://helpinhomework.org/blog/how-to-obtain-answer-through-google-drive-link