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
Your drawer contains 9 black socks and 10 white socks. You randomly choose two socks. Without replacing the first one, what is t
nekit [7.7K]

Answer:

10 / 38

Step-by-step explanation:

Black socks = 9

White = 10

Total = 10 + 9 = 19

Choosibg without replacement :

P(white) = 10 / 19

Second pick:

P(black) = 9 / 18 = 1/ 2

P(white then black) = 10/19 * 1/2 = 10/38

5 0
3 years ago
Solve the math problem
maria [59]

Answer:

9

Step-by-step explanation:

5*23

8 0
3 years ago
Read 2 more answers
Enter the solution to the equation in the box.<br><br> 3(x−7)=6(x−10)
lutik1710 [3]

3x-21=6x-60
3x+39=6x
39=3x
x=13
3 0
3 years ago
Read 2 more answers
A girl scout troop sold cookies. If the girls Sold 5 more boxes the second week than they did the first and if they doubled the
Art [367]
Since the girl scout sold 5 more boxes on the second week, we have (x + 5) number of boxes sold for the second week. Now, for the third week, since it's double that of the second week, we have 2(x + 5). Thus, we have the following:

first week: x
second week: x + 5
third week: 2(x + 5)

Given that the total number of boxes sold for the three weeks is 431. We have

x + (x + 5) + 2(x + 5) = 431
x + x + 5 + 2x + 10 = 431
4x + 15 = 431
4x = 431 - 15
4x = 416
x = 104

We have now the value of x. Using this, we can find the values for the second and third week.
x + 5 = `104 + 5 = 109
2(x + 5) = 2(109) = 218

Answer: 
first week: 104
second week: 109
third week: 218
6 0
4 years ago
If Kathy walks 3 miles in 80 minutes how far will she in 120 minutes
zepelin [54]

Answer:

4.5 miles

Step-by-step explanation:

We can use a ratio to solve

3 miles                 x miles

---------------  = ----------------

80 minutes         120 minutes

Using cross products

3 * 120 = 80x

Divide each side by 80

360/80 = 80x/80

4.5 =x

8 0
3 years ago
Other questions:
  • Write each percent as a fraction in simplest form 2%
    14·2 answers
  • A class of 34 children has two more girls than triple the number of boys. How many girls are there in the class?
    9·1 answer
  • Mrs Connors went to a shopping mall and spent 3/5 of the money she had in her wallet on buying new pots and pans how much money
    13·2 answers
  • Kayla wanted to buy a sweatshirt. The original price was $45. When she went to the store the sale price was $37. What is the per
    11·1 answer
  • A walk-in medical clinic believes that arrivals are uniformly distributed over weekdays (Monday through Friday). It has collecte
    8·1 answer
  • Four less than 5 times a number is equal to 6 more than 3 times a number.
    15·1 answer
  • Brainliest for best answer
    10·1 answer
  • Based on the electron configuration of the two
    15·1 answer
  • Sales tax is 6% using only one term write an expression to represent the discounted price of the phone including tax.
    5·1 answer
  • i dont understand this at all, please dont give me an answer i just need someone to explain it to me if so, thank you &lt;3​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!