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
PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!
zalisa [80]

Answer:

The answe is 2/5m=4

Step-by-step explanation:

If he ate 4 of them, but it means he ate 2/5 muffins,

4 muffins = 2/5 muffins

You substitute x muffins for how much muffins she baked in all -

2/5 * x muffins = 4  or 2/5m = 4

Hope that helped :) <3

5 0
3 years ago
Four students are competing in a spelling bee. The top three students will receive a medal. How many different ways can they fin
Gre4nikov [31]

Answer:

<em>How many different ways can the letters of the word MATH be rearranged to form a four- ... 4 · 3 · 2 · 1 = 24 ways to spell a code worth with the letters MATH. ... example, coming in first means that you get the gold medal instead of the ... A group of four students is to be chosen from a 35-member class to represent the class.</em>

Step-by-step explanation:

7 0
3 years ago
Read 2 more answers
Given: -16 = m/5 -18; <br> Prove: m=10
spayn [35]

Answer:

I have proven m is 10. have a good day and give brainliest if possible.

3 0
2 years ago
7. What's the perimeter of a rectangle with length 12 m and width 5 m?
azamat

Answer:

Option(c) 34m

Step-by-step explanation:

Perimeter of a rectangle = 2(length + breadth)

length = 12m

breadth/width = 5m

Perimeter = 2(12 + 5)

                = 2(17)

                = 34m

8 0
3 years ago
Read 2 more answers
6th grade math help me pleaseee
creativ13 [48]

Answer:

B and D

Step-by-step explanation:

First off, we can rotate it. When rotating, I found that the x and y values switch places in a way.

We would need to rotate it 90 degrees counterclockwise about the origin in order to get it in the same position as triangle BDE. This makes statement B correct.

In order to make triangle ABC smaller, the dilation would have to be smaller than one. Counting the right side's length, ABC has 6 squares and BDE has 3.

This would mean 6 * 1/2 = 3, meaning statement D is true.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Circle 1 has center (−4, 5) and a radius of 6 cm. Circle 2 has (2, −3) and a radius 9 cm. What transformations can be applied to
    15·2 answers
  • After the first term in a sequence, the ratio of each term to the preceding term is r. If the first term is a, what is the third
    6·2 answers
  • Y=(x-4)(x+20) find vertex
    12·1 answer
  • An egg is dropped from a height of 90 ft. If acceleration due to gravity is -16 ft/s2 and initial velocity is Ofts, approximatel
    15·1 answer
  • 30 POINTS PLEASE HELP
    15·1 answer
  • What is an Algebraic expression for, 6-foot pine tree is planted and grew 2 feet each year?
    6·1 answer
  • Factor using greatest common factor 24x-18
    9·1 answer
  • How many solutions exist for the given equation?
    8·1 answer
  • F(n) = 4n +3<br> g(n) = 3n²+2<br> Find f(n) - g(n)<br> help lol
    13·2 answers
  • 9 cows can eat all the grass in a field in 21 days.How many days would it take for 3 cows
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!