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
PLEASE HELP AND PLEASE SHOW YOUR WORKING
professor190 [17]

Answer:

S = 13 - x

T = (18 + x) / 2

Step-by-step explanation:

S = 18

T= 18

Sue gives away x, so subtract it from 18. But Tony gets x, so add it to 18 in his expression.

S = 18 - x

T= 18 + x

Sue eats 5 so subtract 5 from her expression. Tony eats half, so divide his expression by 2.

S = 18 - x - 5

T = 18 + x / 2

Simplify 18-5.

S = 13 - x

T = (18 + x) / 2

6 0
3 years ago
Which equals 23 kilograms?
Harlamova29_29 [7]

Answer:

C

Step-by-step explanation:

To convert kilograms into grams, you need to multiply the number you are converting by 1000.

I hope my answer helpe! :)

4 0
3 years ago
What is 18% of 50?<br> _90<br> _50<br> _36<br> _9<br> _18
FrozenT [24]

Answer:

9

Step-by-step explanation:

percentages are reversable. like instead of 18% of 50 you could reverse it and say what is 50% of 18. which is 9.

5 0
3 years ago
Read 2 more answers
When Riley goes bowling, her scores are normally distributed with a mean of 160 and
e-lub [12.9K]

Answer:

The interval that would represent the middle 68% of the scores of all the games that Riley bowls is (147, 173).

Step-by-step explanation:

The Empirical Rule states that, for a normally distributed random variable:

Approximately 68% of the measures are within 1 standard deviation of the mean.

Approximately 95% of the measures are within 2 standard deviations of the mean.

Approximately 99.7% of the measures are within 3 standard deviations of the mean.

In this problem, we have that:

Mean of 160, standard deviation of 13.

Middle 68% of the scores of all the games that Riley bowls.

Within 1 standard deviation of the mean, so:

160 - 13 = 147.

160 + 13 = 173.

The interval that would represent the middle 68% of the scores of all the games that Riley bowls is (147, 173).

6 0
3 years ago
Point R is on line segment QS. Given QS= 5x-2, QR= 3x-6, and RS=4x-2, determine the numerical length of RS.
pashok25 [27]

Answer:

The numerical length of RS is 10 units

Step-by-step explanation:

* <em>Lets explain How to solve the problem</em>

- Point R is on line segment QS

- The length of QS is (5x - 2)

- The length of QR is (3x - 6)

- The length of RS is (4x - 2)

- <em>The length of QS is the sum of the lengths of QR and RS</em>

∵ QS = QR + RS

∴ (5x - 2) = (3x - 6) + (4x - 2)

- Simplify the right hand side by adding like terms

∴ 5x - 2 = (3x + 4x) + (-6 + -2)

∴ 5x - 2 = 7x + -8 ⇒ (+)(-) = (-)

∴ 5x - 2 = 7x - 8

- Add 8 for both sides

∴ 5x + 6 = 7x

- Subtract 5x from both sides

∴ 6 = 2x

- Divide both sides by 2

∴ x = 3

- <em>To find the length of RS substitute the value of x in its expression</em>

∵ RS = 4x - 2

∵ x = 3

∴ RS = 4(3) - 2 = 12 - 2 = 10

∴ The numerical length of RS is 10 units

8 0
3 years ago
Other questions:
  • How do you simplify 2(3p-4)+5
    6·2 answers
  • How can a mixed number be written as a sum?
    9·1 answer
  • Chet bought 3.54 pounds of cheese for his party. If each of his guesis
    8·1 answer
  • Solve the system of equations below by graphing. x^2-2x+y-3=0 x2+y=0 What is the solution rounded to the nearest hundredth? (–2.
    14·1 answer
  • . On a week-day paper route, Jennifer delivers the following number of papers in one week. What is the median number of papers t
    13·1 answer
  • Each of the 8 cats in a pet store was weighed. Here are their weights (in pounds):
    8·1 answer
  • Have you been to the doctors lately cause it seems like you lack in vitamin me what does it mean?
    5·2 answers
  • 1/3 + (3x+12) = 6x -11
    12·2 answers
  • Riley goes to a store an buys an item that costs x dollars. She has a coupon for 10% off, and then a 8% tax is added to the disc
    6·2 answers
  • When Regina throws darts at a dart board, she hits the bullseye 20% of the time. If she throws 25 darts, how many times can she
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!