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
Arte-miy333 [17]
3 years ago
15

You are given a 16-bit binary integer X= (1110 0100 0111 1010)2 . Convert X to decimal if:

Mathematics
1 answer:
podryga [215]3 years ago
7 0

Step-by-step explanation:

a). The decimal numbers is equal to the sum of binary numbers $(b_n)$  times their powers of   $ 2(2^n) .$

That is,

$ b_n \times 2^n + b_{n-1} 2^{n-1}+ ..... + b_02^0 $

$\therefore (1110 \ \ 0100 \ \ 0111 \ \ 1010)_2 $

=  $ (0 \times 2^0) + (1 \times 2^1) + (0 \times 2^2) + (1 \times 2^3) + (1 \times 2^4) + (1 \times 2^5) + (1 \times 2^6)  + ( 0 \times 2^7) + (0 \times 2^8) + (0 \times 2^9) + (1 \times 2^{10} ) $$  + (0 \times 2^{11}) + (0 \times 2^{12}) + (1 \times 2^{13}) + (1 \times 2^{14})+ (1 \times 2^{15})$

= 58490

b).

The left most bit of the number represents the sign of the number. If bit = 1, the number is negative else if the bit is 0, the number is positive.

All the remaining bits (i.e all the bits except the leftmost bit) represent the magnitude of the number.

  Now, X = 1110 0100 0111 1010

  left most bit = 1 => number is negative

  remaining bits Y = 110 0100 0111 1010

  converting Y to decimal => Y = 25722

c).

Check the leftmost bit(lmb) of the number

if leftmost bit is 0 => convert do the binary to decimal conversion

if leftmost bit is 1, follow the following steps

  1. Flip the bits (convert the 0's into 1's and the vice versa)

  2. convert the new number from binary to decimal.

  3. Add a negative sign / multiply by -1

 Now, X = 1110 0100 0111 1010

left most bit = 1;

flipping the bits => Y = 0001 1011 1000 0101

converting Y into decimal => Y = 7045

multiplying Y with -1 => Y = -7045

Therefore, one's complement of X to decimal is -7045

Thus, X = -25722 in decimal.

d).

Check the leftmost bit(lmb) of the number

  if leftmost bit is 0 => convert do the binary to decimal conversion

  if leftmost bit is 1, follow the following steps

  1. Flip the bits (convert the 0's into 1's and the vice versa)

  2. convert the new number from binary to decimal.

  3. Add 1 to the converted number

  4. Add a negative sign / multiply by -1

Now, X = 1110 0100 0111 1010

left most bit = 1;

flipping the bits => Y = 0001 1011 1000 0101

converting Y into decimal => Y = 7045

Adding 1 to Y => Y = 7046

multiplying Y with -1 => Y = -7046

Thus, two's complement of X to decimal is -7046

You might be interested in
18/4 leave your answer in fraction​
Ipatiy [6.2K]

Answer:

18/4

Step-by-step explanation:

5 0
3 years ago
Seven times the difference of a number and 1
weeeeeb [17]
Describe that better
8 0
3 years ago
Read 2 more answers
Write an equation in​ slope-intercept form of the line that passes through the given point and is parallel to the graph of the g
Bumek [7]
Your parallel equation would be y=-3x-32.
5 0
3 years ago
If the length of a rectangle is a two-digit number with identical digits and the width is 1/10 the length and the perimeter is 2
Oksanka [162]

If the length of a rectangle is a two-digit number with identical digits and the width is 1/10 the length and the perimeter is 2 times the area of the rectangle, what is the the length and the width

Solution:

Let the length of rectangle=x

Width of rectangle=x/10

Perimeter is 2(Length+Width)

= 2(x+x/10)

Area of Rectangle= Length* Width=x*x/10

As, Perimeter=2(Area)

So,2(x+x/10)=2(x*x/10)

Multiplying the equation with 10, we get,

2(10x+x)=2x²

Adding Like terms, 10x+x=11x

2(11x)=2x^2

22x=2x²

2x²-22x=0

2x(x-11)=0

By Zero Product property, either x=0

or, x-11=0

or, x=11

So, Width=x/10=11/10=1.1

Checking:

So, Perimeter=2(Length +Width)=2(11+1.1)=2*(12.1)=24.2

Area=Length*Width=11*1.1=12.1

Hence, Perimeter= 2 Area

As,24.2=2*12.1=24.2

So, Perimeter=2 Area

So, Answer:Length of Rectangle=11 units

Width of Rectangle=1.1 units

7 0
3 years ago
Read 2 more answers
What is 5 2/5 subtract 2 1/15?
STatiana [176]
5 2/5 would be converted to 5 6/15. you would then subtract the numerators and the whole numbers, giving you 3 5/15, which simplifies to 3 1/5
7 0
3 years ago
Read 2 more answers
Other questions:
  • Find the GCF<br><br><br> 18;45<br><br> 24;16
    5·1 answer
  • Rob and Nancy are working on a project. Rob completes 1/8 OF IT ON Monday and 3/8 of it on Tuesday. Nancy completes 2/8 of it on
    15·2 answers
  • Write a word phrase for the algebraic expression: 2t-9
    14·2 answers
  • Choose as many answers as apply.
    15·1 answer
  • Solve and graph<br><br> 1. 3x-7&gt;5<br><br> 2. -1y&lt;3
    9·1 answer
  • A rock is thrown upwards with in total velocity of 75 ft/s from a height of 225 feet. The height h of the rock above the ground
    6·1 answer
  • 10 coupons are given to 20 shoppers in a store. Each shopper can receive at most one coupon. 5 of the shoppers are women and 15
    12·1 answer
  • (3.2x10^3) + (5.78 x 10^5) ?
    9·1 answer
  • -3/4 plus -8/9
    13·1 answer
  • You can paint a room in 8 hours. Working together, you and a friend could paint the same room in just 5 hours. How long would it
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!