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
Ludovica creates flash cards for her vocabulary words.She creates 3 more cards per noun.
ella [17]

Answer: what is the whole question angel?


Step-by-step explanation:


7 0
2 years ago
If the sin 60 degrees is 3/2, then the cos ______ degrees = ______.
PSYCHO15rus [73]

Answer: If the sin 60 degrees is 3/2, then the cost is 22 degrees and equals a bunch of like 88 degrees

Step-by-step explanation:

7 0
3 years ago
What is 14 times 3
Dmitriy789 [7]

Answer: 37

Step-by-step explanation: 14 x 3 = 42

42 - 5 = 37

4 0
2 years ago
Solve.
ratelena [41]
The answer is x<6 because you have to divide 3 on both side 
4 0
3 years ago
May someone help me with this, it's fairly easy.
Likurg_2 [28]

Answer:

A and B are correct

Step-by-step explanation:

Student C is wrong because they broke up 3/4 into

2/2 + 1/2  

but 2/2 + 1/2 = 3/2, which is not equal to 3/4

7 0
3 years ago
Other questions:
  • What is the answer to <br> 5^2 (72-45)/5
    6·2 answers
  • Logan can paint a room in 12 hours. Marcus can paint the same room in 16 hours. How long does it take for both Logan and Marcus
    6·1 answer
  • Complete the table. (Please helppp)
    8·2 answers
  • Chad jogs 4 2/5 miles in 1/2 hour. What is his average speed in miles per hour?
    14·1 answer
  • Consider the table of values for functions f and g below.
    14·1 answer
  • Suppose the diameter of a circle is \color{green}{4}4start color green, 4, end color green units. What is its circumference?
    13·1 answer
  • a. Miss Butler made a circle graph to show the grades on the term papers. There were 14 B's, 10 A's, and 8 C's.​
    8·1 answer
  • What is the experimental probability of rolling a number greater than four?
    5·1 answer
  • an outdoor pavilion has 30 rows with 20 seats in the first row each row thereafter has 6 more seats using a formula find the tot
    13·1 answer
  • Craig went bowling with $25 to spend. He rented shoes for $5.25 and paid $4.00 for
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!