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
Naddik [55]
3 years ago
10

Can someone explain step by step on how to convert from base 2 to base 10 m​

Computers and Technology
1 answer:
Leno4ka [110]3 years ago
8 0
<h2>What is base 2?</h2>

You know how we have 10 1's in 10, 10 10's in 100, 10 100's in 1000, etc.? That's because, in the <em>decimal system</em>, our base, which you can think of as our "grouping number," is 10. In base 2, that grouping number is 2. To get a feel for what that means, let's try counting in this system. I'll use parentheses for grouping, and we'll write the digits at the end!

<h3>o, (oo)</h3>

We've reached two units, so we group them together since 2 is our base.

<h3>(oo)o, ((oo)(oo))</h3>

We have two groups of 2 now, so we wrap that up in a larger group!

<h3>((oo)(oo))o, ((oo)(oo))(oo), ((oo)(oo))(oo)o</h3>

If we wanted to look at that last number in base 10 in this same style, using paretheses for grouping, it would look like

<h3>ooooooo</h3>

Or 7 in base 10. How do we write something like

<h3>((oo)(oo))(oo)o</h3>

In digits? One way, the stardard way, is to count the number of each type of group that <em>isn't</em> enclosed in a group. For ((oo)(oo))(oo)o, we have

<h3>((oo)(oo)) - 1</h3><h3>(oo) - 1</h3><h3>o - 1</h3>

So we could write this number as 111 in binary. What would happen if we added one more? Well, now we'd have

<h3>((oo)(oo))(oo)oo</h3>

We can group the two o's together:

<h3>((oo)(oo))(oo)(oo)</h3>

And the two (oo)'s together:

<h3>((oo)(oo))((oo)(oo))</h3>

And the two ((oo)(oo))'s:

<h3>(((oo)(oo))((oo)(oo)))</h3>

And now the ungrouped bits are 1 (((oo)(oo))((oo)(oo))), 0 ((oo)(oo))'s, 0 (oo)'s, and 0 o's. We'd write this number as 1000 in base 2, and going back to base 10, we still don't have one full group of ten, so we can strip away the parentheses to get:

<h3>oooooooo</h3>

Which can be written as 8 in decimal.

<h2>Going from Base 2 to Base 10</h2>

Let's say we're given the number 1010 in base 2, and we want to turn that into a number in base 10. What do each of the digit's mean here? let's break it down:

  • 1010: Groups of 1
  • 1010: Groups of 2
  • 1010: Groups of 4
  • 1010: Groups of 8

We can write this as the sum 1\cdot8+0\cdot4+1\cdot2+0\cdot1, or 8+2, which gives us the base 10 number 10 - 1 ten and 0 ones.

<h2>Why base 2?</h2>

At first glace, base 2 seems a little excessive; why do we need 4 digits to write out the number 8? Why go through the trouble? To be honest, we didn't <em>have</em> to pick 10 as our base of choice - it came about historically because we have 10 fingers, and fingers are our main tool for counting. Base 2 finds its use in <em>computers</em>, which, at their most basic level, are a bunch of tiny on-off switches. Since each switch has <em>2 </em>states, base-2 is a natural way for computers to store and represent numbers. Remember that next time you see a movie hacker messing with 1's and 0's!

You might be interested in
Microsoft PowerPoint is popular software that allows you tocreate slides, handouts, notes, and outlines.
gtnhenbr [62]

Answer:

The statement is true. Microsoft PowerPoint is a popular software that allows you tocreate slides, handouts, notes, and outlines.

Explanation:

Microsoft PowerPoint is a presentation program developed by Microsoft for Windows, macOS and lately for Android and iOS operating systems. It comes integrated in the office package called Microsoft Office as one more element, which can take advantage of the advantages offered by the other components of the computer to obtain an optimal result.

It is a program designed to make presentations with schematized text, as well as slide shows, text animations and clip art or imported from computer images. Different font, template and animation designs can be applied. These types of presentations are usually more practical than those of Microsoft Word.

5 0
3 years ago
if we try to use tail-recursive rules to implement non-tail-recursive rules, it will normally result in rules that are
Agata [3.3K]

It will normally result in rules that are more complex and more difficult to understand option (C) is correct.

<h3>What is tail recursion?</h3>

The recursive function is essentially used as the function's final statement in the tail recursion.

If we try to use tail-recursive rules to implement non-tail-recursive rules, it will normally result in rules that are

A. simpler and easier to understand.

B. circular rules.

C. more complex and more difficult to understand.

D. more time-consuming in execution.

The recursive function is essentially used as the function's final statement in the tail recursion. Therefore, tail recursion is what happens when nothing remains to be done after returning from the recursive function.

Thus, if we try to use tail-recursive rules to implement non-tail-recursive rules, it will normally result in rules that are more complex and more difficult to understand option (C) is correct.

Learn more about the tail recursion here

brainly.com/question/20749341

#SPJ4

4 0
1 year ago
Primary purpose of ms Excel​
aleksandr82 [10.1K]
MS Excel is a spreadsheet programme developed by Microsoft in 1985, with the sole purpose of helping businesses compile all their financial data, yearly credit, and yearly debit sheets. Fast forward to the future after 31 years, it is now the most commonly used program for creating graphs and pivot tables.
8 0
3 years ago
If a football player had to use the restroom during a play what do they do?
Artyom0805 [142]
Usually they wait for halftime
4 0
3 years ago
Business Risks are ​
blondinia [14]
Business risk is the exposure a company or organization has to factor(s) that will lower its profits or lead it to fail.
8 0
3 years ago
Other questions:
  • A system of interlinked documents that are available on the internet is
    5·1 answer
  • Consider the following code snippet.a.File inputFile = new File("dataIn.txt");b.Scanner in = new Scanner(inputFile);c.while (in.
    7·1 answer
  • "The study of how changes in the input parameters of a linear programming problem affect the optimal solution is known as
    8·1 answer
  • Refer to the exhibit. One end of the cable is terminated as displayed, and the other end is terminated in accordance with the T5
    7·1 answer
  • This morning when Paul turned on his computer at work, it would not boot. Instead, Paul reported that he heard a loud clicking n
    12·1 answer
  • When aJSP page is compiled, what is it turned into?AppletServletApplicationMidlet
    14·1 answer
  • A homeowner uses a smart assistant to set the house alarm, get packages delivery updates, and set time on the outdoor lights. Wh
    14·1 answer
  • Identify the parts of it, Give at least three web browser that you usually used to visit a website.​
    10·1 answer
  • Mencione 2ejemplos de procesos manuales
    11·2 answers
  • An app ________ is a website that provides access to specific mobile apps that can be downloaded either for a nominal fee or fre
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!