/* Create a function that takes a base number * and an exponent number and returns the calculation. */ double calculateExponent(double num1, double num2) { int x = int(num2)-1; double y = num1; for (int i = 0;i