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
kirill115 [55]
3 years ago
15

For the array given in FindDuplicateCount.java, which index is the last check we need to make to count all the duplicates? 5. In

terpret the number 101010 in bases 2, 10, 16. For each, convert to the other two bases. You need to show all 6 conversions: a) When interpreting 101010 as a base 2 number, convert to bases 10 and 16; b) When interpreting 101010 as a base 10 number, convert to bases 2 and 16; c) When interpreting 101010 as a base 16 number, convert to bases 2 and 10;
Mathematics
1 answer:
kykrilka [37]3 years ago
4 0

Answer:

a) 101010 as a base 2 number is the same as 42 in base 10 and 2A in base 16

b) 42 as a base 10 number is same as 101010 in bases 2 and 2A in base 16

c) 2A as a base 16 number is same as 101010 in base 2 and 42 in base 10

Step-by-step explanation:

a) When interpreting 101010 as a base 2 number, convert to bases 10 and 16;

First convert 101010 from base 2 to base 10

We number the digit from the rightmost digit starting from 0 and we have the following index:

1 = 5, 0 = 4, 1 = 3, 0 = 2, 1 = 1, 0 = 0

The we expand in the power of the index to base 2

= (1*2^{5}) + (0*2^{4}) + (1*2^{3}) + (0*2^{2}) + (1*2^{1}) + (0*2^{0})\\= (1 * 32) + (0 * 16) + (1 * 8) + (0 * 4) + (1 * 2) + (0 * 1)\\= 32 + 0 + 8 + 0 + 2 + 0\\= 42

Then convert to base 16: divide base 10 by 16

42 ÷ 16 = 2 remainder 10(A)

2 ÷ 16 = 0 remainder 2

Reading the remainder bottom-up; we have 2A. 10 is represented as A in Base 16.

b) When interpreting 101010 as a base 10 number, convert to bases 2 and 16;

101010 in base 10 = 42

Converting to base 2

42 ÷ 2 = 21 remainder 0

21 ÷ 2 = 10 remainder 1

10 ÷ 2 = 5 remainder 0

5 ÷ 2 = 2 remainder 1

2 ÷ 2 = 1 remainder 0

1 ÷ 2 = 0 remainder 1

Reading the remainder bottom-up; we have 101010 in base 2

Then convert to base 16: divide base 10 by 16

42 ÷ 16 = 2 remainder 10(A)

2 ÷ 16 = 0 remainder 2

Reading the remainder bottom-up; we have 2A. 10 is represented as A in Base 16.

c) When interpreting 101010 as a base 16 number, convert to bases 2 and 10

Converting from base 16 to base 10; we expand in the power of the index:

2A = (2 * 16^{1} ) + (A * 16^{0})\\2A = (2 * 16^{1} ) + (10 * 16^{0})\\2A = (2 * 16 ) + (10 * 1)\\2A = 32 + 10\\2A = 42

Converting to base 2

42 ÷ 2 = 21 remainder 0

21 ÷ 2 = 10 remainder 1

10 ÷ 2 = 5 remainder 0

5 ÷ 2 = 2 remainder 1

2 ÷ 2 = 1 remainder 0

1 ÷ 2 = 0 remainder 1

Reading the remainder bottom-up; we have 101010 in base 2

You might be interested in
How may permutations of the word “spell” are there?
xeze [42]
See, to make a 5-letter word , 5 places are to be filled ___ ___ ___ ___ ___ 1st 2nd 3rd 4th 5th the first place can be filled in 5 ways (s,p,e,l,l) 2nd place in 4 ways. 3rd place in 3 ways. 4th place in 2 ways. 5th place in 1 way. now , ther are 2L's. hence total no. of words that can be formed=(5*4*3*2*1) / 2*1
4 0
4 years ago
Read 2 more answers
How many days is 1,800 minutes?
nikklg [1K]
ITS 1.25






YOUR WELCOME
8 0
3 years ago
I need help for all of this problems!
Harlamova29_29 [7]
A) All triangles add up to 180° so when given two angles, add those up and subtract them from 180° . That will give you the missing angle.

3-5) When you do A above, and receive the measurement of angle 1, it will also equal 2 and you can repeat A for missing angle 3

6-8) Find the missing angle next to 1, and then subtract that from 180°. That number is the answer for 1. 2 is 55 as its a complimentary (i think thats the right term) angle. Which means it is on the opposite side of an angle. I don't remember how to find 3 however, its been a few years since I've done triangles.
4 0
4 years ago
I need an quick answer to this question please help
Vladimir79 [104]

Answer: 17% 0.175 2/111/5

Step-by-step explanation:

3 0
3 years ago
There are 8 pints in a gallon. How would you convert 13 pints into gallons?
Alex

Answer:

1.625 gal

Step-by-step explanation:

One pint equals 0.125 gal.

5 0
4 years ago
Other questions:
  • What is greater than 1 kg
    5·1 answer
  • Please help me! Trying to understand!
    5·1 answer
  • Solve cotxcsCX-2 cotx=0.
    7·1 answer
  • Katie earned $1890 in 7 years on an investment at a 6% annual simple interest rate. How much was Katie’s investment?
    8·2 answers
  • What is the last digit of
    15·2 answers
  • tom's garage is 12 feet tall and 20 feet wide. he wants to build a scale model of his garage for his sons play cars. tom wants t
    8·2 answers
  • What is the value of x to the nearest tenth?<br> 37°<br> 2.1
    8·1 answer
  • Please help
    15·1 answer
  • The area of a rectangular piece of land is 5/16 square mile. .
    9·1 answer
  • I need help this is really hard i still dont understand plss help
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!