1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alenkasestr [34]
3 years ago
9

Convert the following pairs of decimal numbers to 5-bit 2's-complement numbers, then add them. State whether or not overflow occ

urs in each case. (a) 4 and 11 (b) 6 and 14 (c)-13 and 12 (d) -4 and 8 (e) -2 and -9 (f) -9 and -14
Mathematics
1 answer:
irakobra [83]3 years ago
4 0

Step-by-step explanation:

(a) 4 and 11

   binary equivalent of 4 in 5 bit = 00100

   binary equivalent of 11 in 5 bit = 01011

   decimal number 4 in 2's complement form = 11100

   decimal number 11 in 2's complement form = 10101

now,

        1 1 1 0 0

   <u>  + 1 01 0 1</u>

    <u> 1 1 000 1</u>

Since, we are doing addition on 5 bit numbers but the result of addition came in 6 digit, so there will be overflow.

(b) 6 and 14

   binary equivalent of 6 in 5 bit = 00110

   binary equivalent of 14 in 5 bit = 01110

   decimal number 6 in 2's complement form = 11010

   decimal number 14 in 2's complement form = 10010

now,

        1 1 0 1 0

   <u>  + 1 00 1 0</u>

    <u> 1 0 1 1 0 0</u>

Since, we are doing addition on 5 bit numbers but the result of addition came in 6 digit, so there will be overflow.

(c) -13 and 12

   binary equivalent of -13 in 5 bit = 10011

   binary equivalent of 12 in 5 bit = 01100

   decimal number -13 in 2's complement form = 01101

   decimal number 12 in 2's complement form = 10100

now,

        0 1 1 0 1

   <u>  + 1 0 1 0 0</u>

    <u> 1 0 0 0 0 1</u>

<u />

Since, we are doing addition on 5 bit numbers but the result of addition came in 6 digit, so there will be overflow.

(d) -4 and 8

   binary equivalent of -4 in 5 bit = 11100

   binary equivalent of 8 in 5 bit = 01000

   decimal number -4 in 2's complement form = 00100

   decimal number 8 in 2's complement form = 11000

now,

        0 0 1 0 0

   <u>  + 1  1 0 0 0</u>

    <u>    1  1  1 0 0</u>

<u />

Since, we are doing addition on 5 bit numbers and the result of addition also came in 5 digit, so there will  not be overflow.

(e) -2 and -9

   binary equivalent of -2 in 5 bit = 11110

   binary equivalent of -9 in 5 bit = 10111

   decimal number -2 in 2's complement form = 00010

   decimal number -9 in 2's complement form = 01001

now,

        0 0 0 1 0

   <u>  + 0  1 0 0 1</u>

    <u>    0  1  0 1 1</u>

<u />

Since, we are doing addition on 5 bit numbers and the result of addition also came in 5 digit, so there will  not be overflow.

(f) -9 and -14

   binary equivalent of -9 in 5 bit = 10111

   binary equivalent of -14 in 5 bit = 10010

   decimal number -9 in 2's complement form = 01001

   decimal number -10 in 2's complement form = 01110

now,

        0 1 0 0 1

   <u>  + 0 1  1 1  1</u>

    <u>    1  1  000</u>

<u />

Since, we are doing addition on 5 bit numbers and the result of addition also came in 5 digit, so there will  not be overflow.

You might be interested in
Check all solutions to the equation. x² =-4
vovangra [49]

Answer:

x=2i, -2i

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
The expression 12x+15x-11x can be combined because of which property
Kazeer [188]
The answer would be A. Commutative property of addition 
7 0
2 years ago
Read 2 more answers
I don’t know how to work out this word problem for my math class
Len [333]

do you mind telling me the question?

4 0
3 years ago
Read 2 more answers
Write down the first five terms of the AP with first term 5 and common difference 7 ​
Zigmanuir [339]

Answer:

Hvrbfbkkeuhevejhesseefj

5 0
2 years ago
Which answer shows these decimals written in order from greatest to least? 76.493 79.2 76.81 A. 79.2 &gt; 76.493 &gt; 76.81 B. 7
hichkok12 [17]
The answer to your question is the letter c
8 0
3 years ago
Read 2 more answers
Other questions:
  • How do you write Four more than a number y divided by two is ten
    9·1 answer
  • Are these expressions equivalent?(-2.6) + (-2.9) + (-7.1) and – (2.6+2.9+7.1) Why or why not?
    12·2 answers
  • 4. If two straight lines intersect and one angle is 30°, what are the other three angles?
    15·2 answers
  • How much are these coins worth???
    11·1 answer
  • Some one please help me with this question
    6·1 answer
  • Here are two points (-3,4),(1,7) What is the slope of the line between them?
    10·1 answer
  • 1. How many students have read more than 10 books
    9·2 answers
  • At what position on the number line is the red dot located?
    8·1 answer
  • Find the domain of f(x)= x^2+4
    15·1 answer
  • An ice cream shop sells 6 different flavors, 4 toppings, and 3 types of cones. How many different combinations of three differen
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!