GingerAle
14 oct. 2018

#6**+3 **

*Can you please explain bases are.*

You will defiantly need an understanding of numeric bases to complete your assignment.

This link https://www.mathsisfun.com/base-conversion-method.html presents an overview of base conversions, giving examples using the same method I used in the outline.

Google “base conversion” for other examples and methods of conversion.

First, a rudimentary explanation of what base 10 means. There are only 10 unique numbers (0,1,2,3,4,5,6,7,8,9) –notice that zero (0) is one of these numbers. If a value greater than 9 is needed, then two digits are required. When the 9 is incremented it returns to zero (0), and the digit to its left is incremented to show this happened. It then looks like this 10. Where this “rollover” takes place is the base number. Each value to the left is 10 times greater than its position on the right.

Most of the numbers we use are in base 10 –the decimal system. A clock however is in base 60 (Sexagesimal). Note that one (1) second after a clock reads **11:59:59** the displays reads **12:00:00**. The minutes and seconds roll-over after **59**, not **99**. Most do not realize that it is base 60 because most clocks are **encoded** to display in base 10. This **encoding** is called “Decimal Encoded Sexagesimal”

Most people are so use to this that it’s not given a second thought. Considering this ease of understanding of a very large base (60), it is just a matter of extending this understanding to other (much smaller) bases.

-----------

In the program outline, the base conversion process uses * decimal encoding* and then converts that decimal to a symbol, in this case a letter, when value is greater than 9. So a “10” becomes an “A”, and an “11” becomes “B”, ect. If the display is set for

Remember that any decimal value greater than 9 requires two characters. For bases greater than base 10, additional, unique single characters are needed to represent the values. It’s standard practice to use letters of the alphabet for this purpose.

----------------

*In your example you have written "71298 (the square of 267) to base 17" What does this mean*

**The full text reads**: “Here’s an example converting 71298 (the square of 267) to base 17.”

This means the example following will demonstrate how to convert the base 10 number (71298) to base 17. This was chosen at random from the numbers you will be required to examine.

*In the question they provide a base. *

**Your assignment requires you to convert to 18 different bases. **(I’m not seeing any ambiguity in the wording for your assignment.)

**To clarify**: Your assignment is to generate squares of (base 10) numbers from 1 to 300, then **convert the squares to 18 other bases, starting with base 2 through base 20**. One such number will be 267^{2}=71298. I chose base 17 arbitrarily, as an example from one of the bases you will be converting to.

*and how did you know to divide it by 17 as the base?*

I knew to divide by 17 because to convert from one base to another requires division by that base.

*Like an example input would be 10 and the output would be: *

Your program will square 10, that is 100, then the 100 will be converted to bases 2,3,4,5, ... 17,18,19,20. Then each base conversion will be tested for a palindrome condition, if that is a true condition then the original base 10 number and its square will be printed along with the palindrome in base (b).

**For now, work on understanding what a base is and how to convert to them. This should only require a few hours of study and practice. **

GA

GingerAle11 feb. 2019