Knowee
Questions
Features
Study Tools

Convert each pair of decimal numbers to binary and add using 2's complement-110 and -84

Question

Convert each pair of decimal numbers to binary and add using 2's complement-110 and -84

🧐 Not the exact question you are looking for?Go ask a question

Solution

  1. Convert -110 to binary using 2's complement:

    • First, convert 110 to binary: 110 in binary is 1101110.
    • Next, find the 2's complement of 1101110:
      • Invert the digits: 0010001
      • Add 1: 0010001 + 1 = 0010010
    • So, -110 in 2's complement (assuming an 8-bit representation) is 11100110.
  2. Convert -84 to binary using 2's complement:

    • First, convert 84 to binary: 84 in binary is 1010100.
    • Next, find the 2's complement of 1010100:
      • Invert the digits: 0101011
      • Add 1: 0101011 + 1 = 0101100
    • So, -84 in 2's complement (assuming an 8-bit representation) is 10101100.
  3. Add the two 2's complement binary numbers:

    11100110
    
  • 10101100

110100010


4. Since the result is a 9-bit number, we need to discard the extra bit (leftmost bit):

110100010 (discard the leftmost bit) 10100010


5. The result in binary is 10100010. To verify, convert it back to decimal:
- 10100010 in binary is a negative number in 2's complement.
- Find the 2's complement to get the positive value:
  - Invert the digits: 01011101
  - Add 1: 01011101 + 1 = 01011110
- 01011110 in binary is 94 in decimal.
- Therefore, the result is -94.

So, the sum of -110 and -84 using 2's complement is -194.

This problem has been solved

Similar Questions

Convert the following decimal values to 8-bit 2's complement representation(1*2 Marks)i. -92ii. -36

Convert the following decimal values to a 16-bit 2's complement representation. (1*2Marks)i. -2342ii. 234

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

erform six bit signed two’s complement arithmetic operation on (−15)10 +(+65)10

Which of the following represents the two's complement of the binary number 1101?

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.