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
A bank offers a 6% annual interest rate for a savings account. Marcus puts $8,000 into an account to save for college. How much
olya-2409 [2.1K]
Marcus would have 8480 after a year.

8 0
3 years ago
Read 2 more answers
What is the better buy<br> 1. 2 trains for $25 <br> or<br> 2.6 trains for 90$
creativ13 [48]

Answer:

1.2 trains for $25.

Step-by-step explanation:

For 50 dollars, you could get 2.4 trains with the $25 dollar option.

For 90 dollars (an extra 40 dollars!) you only get 0.2 more trains.

If you add another $25 to the current $50 on the other option, you get 3.6 trains.

So, 1.2 trains for $25 must be the better option as you can get an extra 1 train for 15 dollars less!

Hope this helps!

Also, who buys 0.2 or 0.6 of a train? -_-

5 0
3 years ago
Read 2 more answers
Consider the first five steps of the derivation of the Quadratic Formula.
Sergio [31]

Answer:

B

Step-by-step explanation:

some people can't understand lafossefams joke

7 0
3 years ago
What if Erika and Bradley 14 miles each day. How many days will they hike exactly 14 miles?
Maru [420]
Every day? did you not type the full question??
5 0
3 years ago
What is the solution to the system of linear equations?
rjkz [21]
The correct Answer is (8,1)
6 0
3 years ago
Other questions:
  • 14 and 15 Questions on rates? Thanks :) Brainliest up for grabs.
    5·1 answer
  • Whole numbers to make 380 in four different ways.
    10·1 answer
  • What is 30% of 32.95
    11·1 answer
  • Wrote the slope intercept form of the equation for the line
    12·1 answer
  • Dennis mowed his next door neighbors lawn for a handful of dimes and nickels 80 coins in all. Upon completing the job he counted
    14·2 answers
  • It costs $12 to get into a amusement park and $3 for each ride. Write an expression to represent the cost of going to the amusem
    9·1 answer
  • HELP ASAP!!! ILL GIVE BRAINLIEST!
    12·1 answer
  • The number of ice cubes in a drink and the temperature of the drink, what kind of association is that
    6·1 answer
  • I WILL GIVE BRAINLEST!!!
    13·1 answer
  • This question has two parts. First, answer Part A. Then, answer Part B. Part A Pete is making 8 identical fruit baskets as gifts
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!