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
I will give brainliest, you have to put these in the correct order (24 points)
Vlada [557]

Answer:

First i do not know sorry please help me

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
I need help finding my variable
Oksi-84 [34.3K]
The length is two times its width, and the perimeter equals 24. 

All the sides added up equal 24.

4 and 8 could be the width and the length of the rectangle.

4*2= 8 and

4+4+8+8= 24

width= 4 length= 8

I hope this helps!
~kaikers
8 0
3 years ago
Read 2 more answers
A bead is formed by drilling a cylindrical hole of 2mm diameter through a sphere with an 8mm diameter. Estimate the volume of th
nydimaria [60]
The bead is in a cylindrical shape and the formula for solving the volume of a cylinder is V=pi*r²*h where "r" is the radius, "h" for the height.
We have given values such as:
r=diameter/2 = 2/2 = 1mm
h= 8mm
Solving for the volume, we have:
V=3.14*1²*8
V=24.12 mm²

6 0
3 years ago
The summer after sophomore year, Haley nannied for a family and earned $2000. She
AnnZ [28]

You want to calculate the interest on $2000 at5.8% interest per month after six years?

Here is your formula: I =p*r*t

P is the principal amount which is $2000

R is the rate of interest which is 5.8% per month

T is the time involved whihc is six years  

You’re interest is 8352.00

3 0
3 years ago
Which property justifies this statement?
lakkis [162]

the Reflexive Property of Equality

6 0
4 years ago
Read 2 more answers
Other questions:
  • Which statements are true about a rectangular pyramid with a height of 9 centimeters and a base with the dimensions of 4 centime
    10·2 answers
  • What is a 100 percent if 79,000 is 15 percent
    15·2 answers
  • HELP ASSAP WITH THIS QUESTION!!!!!!
    14·2 answers
  • Carlos is spreading mulch in a circle on top of an area where he has planted some seeds. He has enough mulch to cover an area th
    10·1 answer
  • When a figure is translated on a coordinate grid, what conclusion can you draw from the pre-image and image?
    10·2 answers
  • What is the smallest prime factor of 1821?
    10·2 answers
  • In fixed deposit, a bank gives 10% interest compounded annually for senior citizens. How many complete years will it take for a
    11·1 answer
  • Volume of the cylinder with diameter of 8mm and height of 8mm
    10·1 answer
  • PLEASE HELP!!!
    5·1 answer
  • This is worth 10 points if you show work you will get the Brainliest answer if your unable to show work type it for your explana
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!