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
Bethany's family can eat (13h + 6) hotdogs. Clark's family can eat (10h + 3) hotdogs. Which expression shows the difference betw
andreev551 [17]
It's 3h+3 hope this helps
7 0
3 years ago
Equation for dividing example 25 divided by 5
Dafna11 [192]

Answer: Example: 15 ÷ 5

Step-by-step explanation:

6 0
3 years ago
Please answer the questions
Paladinen [302]
Draw a van diagram then in the middle write what is the same about them. Then state why and how these are the same
5 0
3 years ago
Can someone please help me with this
galben [10]
Yes thats a function, it passes the vertical line test!
4 0
3 years ago
Read 2 more answers
Write an equation of the line that passes through the given points.<br><br> (0,−3),(3,3)
Delicious77 [7]
I find it easiest to use slope-intercept form, or y=mx+b, to do this.

First, find the slope. 6/3 = 2/1 = 2. m = 2.

Next, find the y-intercept. In this case they gave it to you directly. b = -3.

So, the equation would be y = 2x - 3.
5 0
3 years ago
Other questions:
  • A particular number was divided by 6 qnd then 5 was taken away from the quotient. Finally, the difference was mutiplird by 2. Gi
    11·1 answer
  • What is the system of equations for -3x+2y=56 and -5x - 2y = 24
    14·1 answer
  • Candidate A received 15,000 fewer votes than
    8·1 answer
  • Is 1/4 greater than , less than , or equal to 0.4...
    7·1 answer
  • I need help with reading ​
    8·1 answer
  • You decide to take three part-time jobs: Work at a convenience store 60% of your time, and earn $11.00 an hour. Referee games at
    10·1 answer
  • Please help ASP!!!! A= positive, B=Negative, C=Zero​
    14·1 answer
  • Identifying Rigid Transformations
    8·2 answers
  • If I get paid $28,333 a month and I spend 30% of my $28,333 how much money would I have left?
    12·1 answer
  • Identify the postulate (SAS, ASA, SSS) / theorem (AAS) that proves the two triangles are congruent.​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!