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
Give an example of a nonlinear function. You can describe this function in one or more of the following ways: with a table, grap
klio [65]

Answer:

y = x^2.

Step-by-step explanation:

This is nonlinear because, although it is a polynomial, its highest exponent is 2, not 1.

7 0
3 years ago
0401) Which unitrate is equivalent to 17 miles per gallon
Dimas [21]

51 is the answer

hope its help

6 0
2 years ago
Jada can bake 12 cookies in 30 minutes. A this rate, how long will it take her to bake 144 cookies?
Elodia [21]
6 hours

Working;
If 12 cookies take 30 minutes,
Then one cookie takes \frac{30}{12}

144 cookies would take <span>\frac{30}{12} * 144
=360 minutes or 6 hours</span>
3 0
3 years ago
HELP!!!!! Explain how to solve 7x−3 = 26 using the change of base formula. Include the solution for x in your answer. Round your
DiKsa [7]
26-3=7x (23)
23 divided by 7 =3.2857 (x)
6 0
2 years ago
Please see attachment!!! The formula for finding the area of a rectangle is
pychu [463]

Answer:

36cm^2

Step-by-step explanation:

4cm×9cm=36cm^2

5 0
2 years ago
Read 2 more answers
Other questions:
  • |x+1|&gt;8<br> absolute value equations and inequalities
    15·1 answer
  • Determine the equation for the given line in slope-intercept form. y = –x – 1 y = x + 1 y = x + 1 y = –x – 1
    15·2 answers
  • The triangle shown above is possible.<br> O A. True<br> B. False
    5·2 answers
  • What is 10% of 100,000
    6·2 answers
  • Explain why this is wrong:
    15·1 answer
  • Find the measure of the missing angles.
    14·2 answers
  • What is the answer.
    12·1 answer
  • -9x-3y=-18 -3x+y=4 solve the system of equation
    12·1 answer
  • You are remodeling your kitchen. You have contacted 2 tiling companies who gladly told you how long it took their workers to til
    9·1 answer
  • Simplify 8x-5-10x+7 GCF
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!