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, I’m struggling
Naddika [18.5K]

Answer:

49.5 mi

Step-by-step explanation:

Area of a triangle is   A = (height) X (base) / 2

So if you plug in the numbers you get:

806.9 = (32.6) X (base) / 2

1613.8 = (32.6) X (base)

1613.8 / 32.6 = base

base =  49.5 mi

8 0
2 years ago
Suppose you have 48 feet of fencing to enclose a rectangular dog pen. The function
Veseljchak [2.6K]

have you figured out the answer i need help on the problem to

6 0
3 years ago
Use the distributive property to simplify each expression<br> (2b - 10) 3.2
Darya [45]

Answer: 6.4b - 32

Step-by-step explanation:

4 0
3 years ago
Describe a real world situation that would involve finding the circumference of a circle.
hoa [83]
When you buy a coffee table or piece of circular furniture
4 0
2 years ago
A car travels 65 km in 1 hour. what is its average speed in meters per second?
deff fn [24]
<span>Its speed is 18.05 m/s</span>
7 0
3 years ago
Other questions:
  • Please help |x+10| , if x=−12
    14·1 answer
  • In the track meet I competed in the high jump and the pole vault. What is this called?
    12·1 answer
  • If you divide any number by itself, what is the result? How can you apply this result to the expression -1×60/-1×10?
    13·1 answer
  • On a coordinate plane the vertices of a rectangle are (-1,1) (3,1)
    5·1 answer
  • Need Help!!!!!!!!!!!!!!!!
    8·1 answer
  • 88.1-2.3f=72.46 how do you find f
    14·2 answers
  • The radius of the cone is 7 in and y = 25 in. What is the volume of the cone in terms of π? A cone with a right triangle formed
    12·2 answers
  • FIND RS<br> A-1<br> B-8<br> C-17<br> D-27
    15·2 answers
  • Can someone please help me with this problem? It's due tomorrow (picture provided)
    14·1 answer
  • Find the surface area of the composite figure.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!