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
Does anybody know how to unlock websites from school computer
Grace [21]

Answer:

yes go to settings then apps

Explanation:

that's how I did mines

8 0
3 years ago
Which two editions of Windows 7 support 64 bit CPUs? Choose two out of Professional, Business, Starter, or Home Premium.
Tju [1.3M]
Home premium, professional
6 0
4 years ago
Uses of keyboard as a input device
KATRIN_1 [288]

helps us for typing letters, numbers and symbols etc.

3 0
3 years ago
Read 2 more answers
Which of the following file formats allows you to share and save documents
mariarad [96]
OPTION A would be the answer
7 0
2 years ago
List the invoice number and invoice date for each invoice that was created for James Gonzalez but that does not contain an invoi
Ludmilka [50]

Answer:

Derive FROM invoice_transaction, invoice_details, item_details

and JOIN customer_details  ON (invoice_transaction.CUST_ID = customer_details.CUST_ID  AND customer_details.FIRST_NAME = 'James'   AND customer_details.LAST_NAME  = 'Gonzalez')

Explanation:

The following details will be there in the invoice

  1. item_details
  2. rep_details
  3. invoice_details
  4. customer_details
  5. invoice_transaction

 Derive FROM invoice_transaction, invoice_details, item_details

and JOIN customer_details  ON (invoice_transaction.CUST_ID = customer_details.CUST_ID  AND customer_details.FIRST_NAME = 'James'   AND customer_details.LAST_NAME  = 'Gonzalez')

6 0
3 years ago
Other questions:
  • Write the interface (.h file) of a class ContestResult containing: An data member winner of type string, initialized to the empt
    14·1 answer
  • What is computer virus?
    8·1 answer
  • How could the provisions in the new health reform bill improve access to care?
    14·1 answer
  • Write a program that will take an integer and add up each of the number’s digits, count the number of digits in the number, and
    13·2 answers
  • Which branch of science helps avoid or minimize stress-related injuries at workplace?
    12·2 answers
  • Count input length without spaces, periods, or commas Given a line of text as input, output the number of characters excluding s
    8·2 answers
  • What is the unit used to describe the intensity of sound?
    5·1 answer
  • A company wants to build a new type of spaceship for transporting astronauts to the moon. What should the company do first?
    15·2 answers
  • Good day Statistical Methods tutor , I would like to know the formula for calculating the percentage of stockouts for the given
    14·1 answer
  • an engineer is writing a web application that requires some user input. the engineer has put a submit button on their page and n
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!