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
Dividing Decimals by Decimals Word Problems
LuckyWell [14K]

Answer:

speed = distance÷time 48.7÷1.2 = 40.58

8 0
3 years ago
In a fruit punch drink, the 3 ingredients are apple juice, orange juice and cranberry juice. If
Blababa [14]

Answer:

7/20:1/4:2/5

Step-by-step explanation:

3 0
3 years ago
Which of these describes information that can appear in a consumer’s credit report?
ss7ja [257]
I believe the answer is D. A credit report covers info on loan paying history. I was stuck between b and d but then realized it said the company gave a loan while your own credit history covers what you have paid or loaned. Hope this helps, have a nice day.
4 0
3 years ago
Read 2 more answers
The sum of two numbers is 12. The difference of the two numbers is 22. Find the two numbers
valentina_108 [34]

Answer:

-5 and 17

Step-by-step explanation:

The sum of two numbers (let's just say number a and number b) is 12.

a + b = 12

The difference between the same two numbers (still a and b) is 22.

b - a = 22

(Move variable a to the right side to get the following.)

b = 22 + a

(This way, we can substitute b = 22 + a into the first equation, a + b = 12, and solve.)

a + (22 + a) = 12

a + a + 22 = 12

2a = -10

a = -5

a + b = 12

-5 + b = 12

b = 17

7 0
2 years ago
Solve the equation. Write a justification for each step. <br>5m-3=22
balu736 [363]

Answer:

m=5

Step-by-step explanation:

5m-3=22

  1. take 3 the other side by doing the opposite operation

5m= 22+3

5m= 25

  • then divide it by 5 on both sides to get the value of m.
  • 5m÷5=25÷5
  • 5and 5 cancels out and the answer becomes :

m=5

5 0
3 years ago
Read 2 more answers
Other questions:
  • One number is 8 more than another number, and their sum is 20. Find the numbers.
    14·2 answers
  • Rewrite 7 − 8 using the additive inverse and display the new expression on a number line
    13·1 answer
  • What is the midpoint of a line segment with the end points (-6 -3) and (9 -7)
    13·1 answer
  • Graph: y-3=1/2 (x+2)
    11·2 answers
  • AB and BC are tangents to P. what is the value of x? this is really so confusing
    11·1 answer
  • Brian is 2 years older than Malachy. Caroline is 8 years younger than Malachy. If the total of their ages is 66, how old is the
    14·1 answer
  • Someone, please help I'll give you brainiest!!
    15·1 answer
  • Please help due in 20 minutes will give brainliest.
    10·1 answer
  • Margaret is reading a book. The number of pages she has left to read is 276−35d, where d represents the number of days she has b
    5·1 answer
  • Below is a puzzle that requires algebraic thinking. Choose two numbers to fill in the white boxes in the top row. Follow the arr
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!