Also, for Square Root, Exponents, and so on, you'll have to perform the math in the same way I demonstrated; however there is one rule. You must perform the math on the number to be manipulated before performing the math on the manipulation. For example:
5 + 8 + SquareRoot(9). We know the answer to this is 16. Our computers know this as well, however they can't tell you the answer just by looking at SquareRoot(9). They need to be told how to calculate that. So for something involving manipulation of a number you would perform the math in steps. Shall I explain?
With my example 5 + 8 + SquareRoot(9) we would first solve 5 + 8, giving us 13. Then we would solve for the square root of 9; which brings out new expression to 13 + 3. Thus giving us the answer of 16. But say the user wants to make it 5 + 8 + SquareRoot(9) + 4, which is equal to 20. To do this, we would solve the Square Root of 9 before performing math on 13 + SquareRoot(9). Then we would perform the math. So using the same algorithms I provided earlier (switch logic) you would add in an extra button called SquareRoot (or whatever you want to call it) that would serve as a notice to perform Square Root math. Meaning you would add a new variable called (for example) SpecialMath as type boolean. Then if SpecialMath is a true value, see …