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
A flower vase bought for Rs. 72 and sold for Rs. 63. Find the loss percent.​
nasty-shy [4]

Answer:

12.5% is loss....

hope it helps.

3 0
3 years ago
Read 2 more answers
As an estimation we are told 5 miles is 8 km. <br> Convert 27.4 miles to km.
kicyunya [14]

Answer:

43.8 km to the nearest tenth.

Step-by-step explanation:

5 miles is 8 km

so 1 mile = 8/5 km

and 27.4 miles = 27.4 * 8/5

= 43.84 km

7 0
3 years ago
Read 2 more answers
Jerry had $1,018.00 in savings. last week he spent $84.00 on a desk and $372.00 on a computer from his savings. this week at a p
liberstina [14]
Original balance $1,018.00
Desk cost -$84.00
Computer cost -$372.00
Savings from job +$44.00
Current balance = $606.00
Amount to be added to get original balance:
1018 - 606
= $412.00
3 0
3 years ago
Read 2 more answers
WILL GIVE BRAINLIEST if thorough steps are provided!
leonid [27]

Answer: 106.5 I believe

Step-by-step explanation:it’s gonna be 6 to the third power minis three over x=2

4 0
2 years ago
Read 2 more answers
A half-Dollar has a diameter of about 31 millimeters. About how many millimeters long would a row of 56 half-dollars be?
Galina-37 [17]
Multiply 31 mm by 56:

56(31 mm) = 1736 mm (answer)
8 0
3 years ago
Read 2 more answers
Other questions:
  • Twenty less than 8 times a number is the same as 15 more than the number.
    15·2 answers
  • Can someone please help me with this one question
    9·1 answer
  • vanesa multiplies two integers. When she adds the product to 4, the sum is 0. What can you say about the two integers
    14·1 answer
  • Which expression shows the length, BC, of the base of the stand?
    8·1 answer
  • -- the quotient of 15 and the product of 2 * X
    12·1 answer
  • How do businesses help a country’s economy?
    12·2 answers
  • Sam measured the length of a pen to be 22cm. The actual length of the pen is 23 cm. Determine the percent error for this situati
    11·1 answer
  • What 2 fingers should you use to properly check your pulse?
    6·2 answers
  • 8*10^4 is how many times as large as 4*10^-5
    7·1 answer
  • Is this graph a function?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!