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]
3 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]3 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
Angle a=126°. What is the measure of angle b? Explain how you calculated your answer.
velikii [3]
It’s 57 57 57 okay i had this question once
7 0
3 years ago
What is the area of a sector with a central angle of \frac{5 \pi }{6} radians and a diameter of 5.6 in.? Use 3.14 for π and roun
kvasek [131]

Answer:

10.26 in²

Step-by-step explanation:

The area (A) of the sector is

A = area of circle × fraction of circle

  = πr² × \frac{\frac{5\pi }{6} }{2\pi }

  = π × 2.8² × \frac{5}{12} ≈ 10.26 in²

7 0
3 years ago
Find the average rate of change of f(x)=2x^2-7x from x=2 to x=5
m_a_m_a [10]

Answer:

7

Step-by-step explanation:

The average rate of change of f(x) in the close interval [ a, b ] is

\frac{f(b)-f(a)}{b-a}

Here [ a, b ] = [2, 5 ]

f(b) = f(5) = 2(5)² - 7(5) = 50 - 35 = 15

f(a) = f(2) = 2(2)² - 7(2) = 8 - 14 = - 6, thus

average rate of change = \frac{15-(-6)}{5-2} = \frac{21}{3} = 7

3 0
3 years ago
The normal curve with a mean of 0 and standard deviation of 1 is called?
Schach [20]

Answer:

A normal distribution with a mean of 0 and a standard deviation of 1 is called a standard normal distribution. so its A

Step-by-step explanation:

i looked it up and i think this is right :)

7 0
3 years ago
The graph of y=|x|y=∣x∣y, equals, vertical bar, x, vertical bar is shifted down by 999 units.
frosja888 [35]

Answer:

y =  |x| -9

Step-by-step explanation:

The base function is given as

y =  |x|

This graph opens up and has its vertex at the origin.

When we shift the graph of this function down by 9 units, its vertex is now at (0,-9)

The equation of this new graph is

y =  |x| -9

7 0
3 years ago
Read 2 more answers
Other questions:
  • 1. If the length of a rectangle is decreased by 4 cm and the width is increased by 5 cm, the result will be a square, the area o
    6·1 answer
  • jamal is going to borrow $14,000 from his credit union to buy a used car. The APR is 7.0% and the length of the loan is 4 years.
    14·2 answers
  • (3 pt) Which property does the statement illustrate? Column A Column B
    9·1 answer
  • How many minutes does Ali run per calorie burned?<br><br> What is the slope of the graph?
    12·1 answer
  • Holly can walk 3.75 miles per hour. At that same rate, how far can she walk in 2.5 hours?
    14·2 answers
  • Which situation describes using a credit card? A. Jackie asked a bank teller to withdraw cash for her. B. Cory bought a book, an
    15·1 answer
  • $160 divided 5g unit rate
    13·1 answer
  • The first triangle is dilated to form the second triangle.
    11·1 answer
  • 2x +2=6<br><br> Help ASAP<br><br> 8th grade math
    10·2 answers
  • Stella went shopping for a new camera. Sales tax where she lives is 6%. The price of the camera is $50. Find the total price inc
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!