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
Sladkaya [172]
4 years ago
13

How many bits are required to represent the decimal numbers in the range from 0 to 999 in straight binary code?

Mathematics
1 answer:
ad-work [718]4 years ago
8 0
Note that powers of 2 can be written in binary as

2^0=1_2
2^1=10_2
2^2=100_2

and so on. Observe that n+1 digits are required to represent the n-th power of 2 in binary.

Also observe that

\log_2(2^n)=n\log_22=n

so we need only add 1 to the logarithm to find the number of binary digits needed to represent powers of 2. For any other number (non-power-of-2), we would need to round down the logarithm to the nearest integer, since for example,

2_{10}=10_2\iff\log_2(2^1)=\log_22=1
3_{10}=11_2\iff\log_23=1+(\text{some number between 0 and 1})
4_{10}=100_2\iff\log_24=2

That is, both 2 and 3 require only two binary digits, so we don't care about the decimal part of \log_23. We only need the integer part, \lfloor\log_23\rfloor, then we add 1.

Now, 2^9=512, and 999 falls between these consecutive powers of 2. That means

\log_2999=9+\text{(some number between 0 and 1})

which means 999 requires \lfloor\log_2999\rfloor+1=9+1=10 binary digits.

Your question seems to ask how many binary digits in total you need to represent all of the numbers 0-999. That would depend on how you encode numbers that requires less than 10 digits, like 1. Do you simply write 1_2? Or do you pad this number with 0s to get 10 digits, i.e. 0000000001_2? In the latter case, the answer is obvious; 1000\times10=10^4 total binary digits are needed.

In the latter case, there's a bit more work involved, but really it's just a matter of finding how many number lie between successive powers of 2. For instance, 0 and 1 both require one digit, 2 and 3 require two, while 4-7 require three, while 8-15 require four, and so on.
You might be interested in
Expression best estimates Negative 18 and one-fourth divided by 2 and two-thirds?
Mamont248 [21]
This is my expression

6 0
3 years ago
Solve the equation 8 sin x = 2.5 for<br> the interval 0° to 720°
IgorC [24]

Answer:

<em>18.2°, 161.8° and 378.2°</em>

Step-by-step explanation:

Given the expression:

8 sin x = 2.5

Divide both sides by 8

sinx = 2.5/8

Sinx = 0.3125

x = arcsin(0.3125)

x1 = 18.2

Since sin theta is positive in the second quadrant, x2 = 180 - 18.2 = 161.8°

Since our angle must lie in between  0° and 720°,then;

x3 = 360 + 18.2 = 378.2°

<em>Hence the required angles are 18.2°, 161.8° and 378.2°</em>

4 0
3 years ago
[The volume of a circular cylinder of height h and radius r is given by V = pir^2h.] Set up a one variable function to minimize
ch4aika [34]

Answer:

Q1: S(r)= 200/r

Q2: a: dv= 20pie

B: relative error: dv/v =1/16

%error= 6.25%

Step-by-step explanation:

Attached is the complete solution.

7 0
3 years ago
What are the coordinates of the y-intercept of the line who's equation is 12x + 13y =8???
Ierofanga [76]

Answer:

y-intercept = (0,  \frac{8}{13} ).

Step-by-step explanation:

Given the linear equation in standard form, 12x + 13y = 8:

We must transform this equation into slope-intercept form to make it easier to determine the coordinates of the y-intercept.

12x + 13y = 8

Subtract 12x from both sides:

12x + 13y - 12x = - 12x + 8

13y = - 12x + 8

Next, divide both sides of the equation by 13 to solve for y:

\frac{13y}{13} = \frac{-12x + 8}{13}

y = \frac{-12x + 8}{13} or  y = -\frac{12}{13} x + \frac{8}{13}

Next, to determine the y-intercept, we must set x = 0 (because the y-intercept is  the point where the graph of the linear equation crosses the y-axis).

Let x = 0:

y = -\frac{12}{13} x + \frac{8}{13}

y = -\frac{12}{13} (0) + \frac{8}{13}

y = \frac{8}{13}

Therefore, the value of y when x = 0 is \frac{8}{13} . This is the y-intercept, and its coordinate is (0,  \frac{8}{13} ).

6 0
3 years ago
An architect is designing an office building with n floors that will have an FM radio antenna 15.85 m tall on its roof. Each flo
sveticcg [70]

Answer:

h=3.9x+15.85 meters

Step-by-step explanation:

Let's say that the height of the floor just before the roof to the highest point of the roof is also 3.9 m, perhaps, we have an almost flat roof

Since the FM radio antenna is fixed on top of roof, the total height is that of previous floors and the antenna

Taking the building to have x number of floors with each floor having 3.9 m height, the function of height will be

h=3.9x + 15.85 meters

8 0
4 years ago
Other questions:
  • Write a problem that the expression 3(-7)-10+25= -6 could represent.
    9·2 answers
  • Solve (x + 2 &lt; 5) (x - 7 &gt; -6).
    14·1 answer
  • How do you draw a two dimensional shape that has four angles in all show a picture
    9·1 answer
  • Name this angle in three different ways
    15·2 answers
  • The population of a city is modeled by
    11·1 answer
  • Juan learned that gear ratio refers to the number of times one gear rotates in relation to another gear. The ratio of the gears
    8·1 answer
  • Someone please help!!
    7·1 answer
  • I need to know the answer to this please ASAP
    5·1 answer
  • If I share out my sweets between 8 people, each person gets 8 sweets each. How many sweets does each person get if I share them
    5·1 answer
  • Please help question is in the images below
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!