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
X < 4 and x > -3: I need this in interval notation please.
maksim [4K]

x > -3 and x < 4

in interval notation

x\in(-3,\ 4)

>; < - a open circle on the number line and the parenthesis ( or )

≥; ≤ - a filled-in circle on the number line and the parenthesis  [ or ]

8 0
3 years ago
In how many ways can the first 4 guests arrive at a party if 15 guests have been invited.
notsponge [240]

Answer:

The first 4 guests can arrive in 32,760 ways.

Step-by-step explanation:

The order in which the guests arrive is important. For example, A,B,C,D is a different outcome to B,A,C,D. So we use the permutations formula to solve this question.

Permutations formula:

The number of possible permutations of x elements from a set of n elements is given by the following formula:

P_{(n,x)} = \frac{n!}{(n-x)!}

In this question:

4 guests from a set of 15. So

P_{(15,4)} = \frac{15!}{(15-4)!} = 32760

The first 4 guests can arrive in 32,760 ways.

6 0
4 years ago
Read 2 more answers
A restaurant has 4 pizza toppings to choose from how many different 3 topping pizzas are free
Brrunno [24]

Answer:

<em><u>Only 4 different 3 topping pizzas are possible.</u></em>

Step-by-step explanation:

<em><u>H</u></em><em><u>o</u></em><em><u>p</u></em><em><u>e</u></em><em><u> </u></em><em><u>i</u></em><em><u>t</u></em><em><u> </u></em><em><u>w</u></em><em><u>o</u></em><em><u>r</u></em><em><u>k</u></em><em><u>s</u></em><em><u> </u></em><em><u>o</u></em><em><u>u</u></em><em><u>t</u></em><em><u> </u></em><em><u>:</u></em><em><u>)</u></em><em><u>)</u></em>

6 0
4 years ago
Read 2 more answers
Amanda is using wire to construct a triangle for an art project. She has 4 inches of blue wire and
belka [17]

Answer: 8

Step-by-step explanation:

4 is the base. 8 are the sides

6 0
3 years ago
Help identify the mapping diagram.
egoroff_w [7]

1. A, it is a function

2. A, it is not a function

3 0
3 years ago
Read 2 more answers
Other questions:
  • What's the product of (s+t)( 3s-4t)
    14·1 answer
  • Simplify the trigonometric expression tan(2x)/tan(x) using double-angle identities !!
    7·1 answer
  • Justin is 2 years older than 1/3 Marcella's age aimee is 4 years old younger than 2 times Justin age.Define a valuable in right
    6·2 answers
  • The business college computing center wants to determine the proportion of business students who have personal computers (PCʹs)
    10·1 answer
  • Theresa has to pay back 5000 in student loans. She can afford to pay 150 per month. Write a linear function that describes this
    13·1 answer
  • Class 5A can complete a project in 15 days while class 5B needs twice that amount of time. To complete this project before the s
    11·1 answer
  • which function g represents the exponential function f(x)=3^x after a horizontal stretch by a factor of 4 and a reflection acros
    12·1 answer
  • Clare has 60% of her goal of $80 saved for her trip. How much did she save so far?
    14·1 answer
  • Will give brainlist to whoever is correct first
    6·2 answers
  • Vincent and Aidan buy the same number of pens. Vincent buys packs of 6 pens, and Aidan buys boxes of 20 pens. What is the least
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!