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
What is 6.5% of 4300 round to the nearest hundredth
muminat

Answer:

279.50

Step-by-step explanation:

4,300 x 0.065 = 279.50. Hope this helps!

5 0
3 years ago
Is Allie is 16 years old and her brother is 20 years, how far apart are they?
love history [14]
4 years apart if he is 20 years old
4 0
3 years ago
Read 2 more answers
3 bananas cost $0.99. At this rate, how much do 5 bananas cost?
Ierofanga [76]

Answer:

$1.65

Step-by-step explanation:

first i divided 0.99 by 3, equalling 0.33. i then multiplied 5 times 0.99 to equal 1.65.

7 0
3 years ago
Hello can you please help me posted picture of question
Anna [14]
The answer would be A. 5x^2 + 3x + 4.
6 0
3 years ago
Read 2 more answers
Which graph shows the solution to the system of linear inequalities below?
hodyreva [135]

Answer:

Option B

The solution in the attached figure

Step-by-step explanation:

we have

<em>Inequality A</em>

y > -\frac{1}{3}x+1

we know that

The solution of the inequality A is the shaded area above the dashed line

The equation of the dashed line is y=-\frac{1}{3}x+1

The slope of the dashed line is negative m=-\frac{1}{3}

<em>Inequality B</em>

y > 2x-1

we know that

The solution of the inequality B is the shaded area above the dashed line

The equation of the dashed line is y=2x-1

The slope of the dashed line is positive m=2

therefore

The solution in the attached figure

7 0
3 years ago
Read 2 more answers
Other questions:
  • Which of the following represents the standard form of the linear equation below?
    7·1 answer
  • PLEASE IF YOU KNOW THE ANSWER comment below the answer
    5·1 answer
  • Question in photo 1, answer choices in photo 2. thanks.
    15·1 answer
  • Please simplify the equation
    7·1 answer
  • Eight people are equally sharing 12 muffins. How many muffins will each person receive?
    14·2 answers
  • Can anyone help and explain the answer ?
    9·1 answer
  • 15 POINTS PLLLSSS HELP
    10·1 answer
  • Explain how you would take a survey to find your classmates favorite shirt color
    13·2 answers
  • Which equation matches the graph?
    10·1 answer
  • Zelda made 5 gallons of lemonade and gave each of her friends an equal amount. Write an expression that represents how much lemo
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!