Take the program example (Calcualtor.java) and design an interactive solution to do more Math practices. Add more complicated math (logarithms or other math functions). Make sure your program has a menu to choose from the math practice and also provide choices to continue on more math practice. Include a method which explains what the program does and detailed notes/comments on what has been added or modified.Attachments

On the following I reformatted the whole code. Making it more readable, and understandable. As for calculation operation, implemented are: 1. addition 2. subtraction 3. multiplication 4. square root 5. power
Attachments

@return The square root of <code>a</code>.
*/
private static int doSquareRoot(int a) {
System.out.println("Welcome to our Square Root practice");
System.out.print("Square root of " + a + ": ");
return (int) Math.sqrt(a);
}
/**
* Does the power operation.
*
* @param a The number.
* @param b The exponent.
*