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
If the rule of the function is "multiply by 2 then add 3" and the input value is -2, what is the output value?
miv72 [106K]
The equation would be 2x+3 so when you plug it in it's 2(-2)+3 which simplify to -4+3 which is -1
5 0
2 years ago
(6.8 x 10^2) x (1.3 x 10^-3)
Leviafan [203]

Answer: (6.8 x 10^2) x (1.3 x 10^-3) = 0.884x^{2}

Step-by-step explanation:

6 0
2 years ago
How are 12 fl oz equivalent to 335 ml
Mazyrski [523]
The question asks us to find that 12 fl oz is equivalent to 335 ml. Then we have to either convert the milliliter to oz or vice-verse. In this case we will convert 12 fl oz to milleter and check if it comes to 335 ml.
Now we already know that
1 oz = 29.57 ml
Then
12 oz = (29.57 * 12) ml
          = 354.84 ml
         = 355 ml
So we see that 12 oz is not equal to 335 ml but it is almost equivalent to 335 ml.
4 0
2 years ago
PLEASE HELP I ONLY HAVE 3 MINUTES NOW
dolphi86 [110]

Answer:

1. D) 15

2. B) -3

Step-by-step explanation:

I can't provide you with the step by step explanation within 3 minutes but I guarantee you that these are the right answers.

<h2><em><u>PLEASE MARK MY ANSWER AS BRAINLIEST!!!!!</u></em></h2>
7 0
3 years ago
Read 2 more answers
A rectangle garden has a length of 12 feet. you need 36 feet of fencing to enclose the garden. what is the width of the garden ?
iren [92.7K]

Let us suppose the width is x feet

the length is given 12 feet

Perimeter of teh garden = 2( Length + width )= 2( 12+ x)

Fencing required = perimeter of garden

36 = 2( 12+x)

36 = 2*12 + 2x

36 = 24 + 2x

36-24 = 2x

12 = 2x

12/2 = x

6 = x

Width = x feet = 6 feet .Answer .

7 0
3 years ago
Other questions:
  • Graph this parametric equation<br><br> x = 2t y = t + 5, -2 ≤ t ≤ 3
    11·1 answer
  • A coin is rolled three times.find the probability of getting 2 heads​
    13·2 answers
  • What are the values of the variables?
    9·1 answer
  • If f(x) = 4x – 3 and g(x) = x + 4, find (f – g)(x).
    12·1 answer
  • The polynomial 16x + 2 is a
    10·1 answer
  • What is the equation of a line, in general form, with a slope of -2 and a y-intercept of 8?
    5·1 answer
  • In ΔGHI, the measure of ∠I=90°, the measure of ∠G=62°, and GH = 96 feet. Find the length of IG to the nearest tenth of a foot.
    8·2 answers
  • -25 - 6k + 7=6(1+ 3k)<br><br> Solve the equation for The Variable
    14·2 answers
  • Determine whether the system has no one, or infinitely many solutions.<br>y = 2x + 6 <br>y = -x - 3​
    10·2 answers
  • Come up with a rule for subtracting integers
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!