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
Which of the binomials below is a factor of this trinomial?
FromTheMoon [43]

Answer:

6 X2 6X-72

Step-by-step explanation:

5 0
3 years ago
Read 2 more answers
Your gas tank has approximately 78.1% of fuel left. If the tank can old 30 gallons, how much is left?
andrey2020 [161]

Answer:

23.43 gallons.

Step-by-step explanation:

30*0.781 which is 23.43 gallons.

Hope this helps!

Merry Christmas!

4 0
3 years ago
Someone who is smart help, Im struggling with this and it's the last hardest question on my homework. Please help.
Ostrovityanka [42]
16 3/8 I so sorry if wrong glade I could help
8 0
3 years ago
Question 1(Multiple Choice Worth 4 points)
Airida [17]
I think you mean x^2 - 7x + 8
This is a basic factoring problem:
What two numbers multiply to make 8 and add to make -7?
There are no two numbers that work!
Therefore, it is prime
4 0
3 years ago
A Farmer plants the same amount everyday, adding up to 1 3/4 acres at the end of the year. If the year is 1/2 over how many acre
DochEvi [55]

Answer:

1/45 acres the farmer planted

8 0
3 years ago
Other questions:
  • Solve the equation. x/5 +9 = 4
    12·1 answer
  • The equation for the position of an object at time t is represented by the equation f(t)=4t^2-2t. Which equation represents the
    5·2 answers
  • Find the product 0.03×44.2
    6·2 answers
  • What is 1000 x 10 -5000 +23 - 93 giving brainist thanks!!!
    9·1 answer
  • All my points to person who has best answer plz make it simpule
    14·2 answers
  • Well I'm having troubles with something I have no idea what it is or how to do it. The problem is x^2 -18x+8=0. I only know how
    5·1 answer
  • (19+8)x11+4<br> Order of operations
    11·2 answers
  • The five patterns are: circle, plus sign, wavy lines, empty box, and star. One hundred trials were conducted, and your very impr
    13·1 answer
  • For the following linear equation, what are the slope and y intercept<br> Y=x-3
    6·1 answer
  • May want to get 35% of a 6.8 pound bag of almonds to her neighbor how many pounds did she gift to her neighbor?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!