// ValueParametersDemo.java

public class ValueParametersDemo  {

   public static void main(String[] args)
   {
      System.out.print("This program will raise a floating-point ");
      System.out.println("number to an integer power.");

      System.out.print("Enter base (floating-point):>");
      String baseText = ConsoleInput.readLine();
      float enteredBase = Float.parseFloat(baseText);

      System.out.print("Enter exponent (integer):>");
      String exponentText = ConsoleInput.readLine();
      int enteredExponent = Integer.parseInt(exponentText);

      double result = MathUtility.power(enteredBase, enteredExponent);

      System.out.println(enteredBase + " to the " +
                         enteredExponent + " power is " +
                         result + ".");
   }  // method main(String[])
}  // class ValueParametersDemo