Write the definition of a method powerto, which receives two parameters. the first is a double and the second is an int. the method returns a double. if the second parameter is negative, the method returns zero. otherwise it returns the value of the first parameter raised to the power of the second parameter.