Okay, here is the problem, the '^' operator in java is NOT how you do an exponent. It is actually XOR, a binary math function. Instead of "prod = base ^ exponent;", use "prod = Math.pow(base,...