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
30 POINTS + BRAINLIEST TO FIRST CORRECT ANSWER!
Vinvika [58]

Answer:

The length will be multiplied by 2.

Step-by-step explanation:

By looking at the first and third ratio, we know that the no. of birck have been multiplied by 2 and the length has also been multiplied by 2 .

So when the number of bricks is multiplied by 2, the length is multiplied by 2

7 0
3 years ago
Read 2 more answers
This is a question on my partial fractions homework, but no matter what I try I can't figure it out..
Ierofanga [76]
\dfrac{x^2+x+1}{(x+1)^2(x+2)}=\dfrac{a_1x+a_0}{(x+1)^2}+\dfrac b{x+2}
\implies\dfrac{x^2+x+1}{(x+1)^2(x+2)}=\dfrac{(a_1x+a_0)(x+2)+b(x+1)^2}{(x+1)^2(x+2)}
\implies x^2+x+1=(a_1+b)x^2+(2a_1+a_0+2b)x+(2a_0+b)
\implies\begin{cases}a_1+b=1\\2a_1+a_0+2b=1\\2a_0+b=1\end{cases}\implies a_1=-2,a_0=-1,b=3

So you have

\displaystyle\int_0^2\frac{x^2+x+1}{(x+1)^2(x+2)}\,\mathrm dx=-2\int_0^2\frac x{(x+1)^2}\,\mathrm dx-\int_0^2\frac{\mathrm dx}{(x+1)^2}+3\int_0^2\frac{\mathrm dx}{x+2}
=\displaystyle-2\int_1^3\dfrac{x-1}{x^2}\,\mathrm dx-\int_0^2\frac{\mathrm dx}{(x+1)^2}+3\int_0^2\frac{\mathrm dx}{x+2}

where in the first integral we substitute x\mapsto x+1.

=\displaystyle-2\int_1^3\left(\frac1x-\frac1{x^2}\right)\,\mathrm dx-\frac1{1+x}\bigg|_{x=0}^{x=2}+3\ln|x+2|\bigg|_{x=0}^{x=2}
=-2\left(\ln|x|+\dfrac1x\right)\bigg|_{x=1}^{x=3}-\dfrac23+3(\ln4-\ln2)
=-2\left(\ln3+\dfrac13-1\right)-\dfrac23+3\ln2
=\dfrac23+\ln\dfrac89
4 0
3 years ago
What is the opposite of the opposite of 8?<br> A.8<br> B.1/8<br> C .-8<br> D -1/8
egoroff_w [7]
Answer :

C. -8

Hope this helps!
4 0
3 years ago
Read 2 more answers
Step 1: Choose the lowest common denominator.
Maslowich

The expression written in equivalent form with a common denominator is -1/6

<h3>Adding fractions</h3>

Fractions are written as ratio of two integers. For instance a/b is a fraction.

Given the sum of the fractions shown;

-3/4 and 5/8

Sum = -3/4 + 5/8

Sum = 5/8 - 3/4

Sum = 5-6/8

Sum  = -1/8

Hence the sum of the given fraction -1/3 and 5/8 is -1/6

Learn more on sum of fractions here: brainly.com/question/78672

#SPJ1

7 0
2 years ago
Solve for m: x - 1/3 = 2/7
Ksenya-84 [330]
    x-1/3 = 2/7
  =>x-0.33 = 0.2857
  =>x-0.33+0.33=0.2857+0.33
 =>x = 0.6157
4 0
3 years ago
Other questions:
  • Will 4 5/10 x 6/17 be larger, smaller, the same or impossible to tell than 4 5/10?
    8·1 answer
  • A box contains 19 large marbles and 11 small marbles. Each marble is either green or white. 3 of the large marbles are green, an
    12·1 answer
  • How to simplify 1802÷17
    8·1 answer
  • Solve for m<br>2m = -6n -5; n = 1, 2 ,3
    7·1 answer
  • The graph shown matches which quadratic equation?
    5·2 answers
  • What does c.8789756 times 8 divided by -55.c=
    13·1 answer
  • Combine and simplify the following radical expression. 3^ square root 6 x 3^ square root 4​
    8·1 answer
  • If the interest rate on a $5,000 loan is 10%, what is the total amount due (principal and compound interest) at the end of the l
    5·1 answer
  • Are these fractions equivalent to
    10·2 answers
  • Which of the following is equal to
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!