   import java.io.*;				//Brings in the PrintWriter class, amoung others
   import java.util.*;			//Brings in the Scanner class, as well as others
/**********************************************
 * Takes the square root of a number.
 *
 * @author - Andrew Whitby
 * @version - V1.0 - 1-22-07
 ************************************************/
 /*
 /  Ackknowledgements: All work is my own
 /
 /***********************************************/
    public class IO_whitbyae_Rooter
   {
       public static void main(String[] args)
      {
         double          value, result;       
         PrintWriter     screen;       
         Scanner         keyboard;
       
         screen   = new PrintWriter(System.out);       
         keyboard = new Scanner(System.in);
      
         screen.println("Enter a number: ");
         screen.flush();    
       
       
         while (keyboard.hasNextDouble())
         {
            value = keyboard.nextDouble();
            result = Math.sqrt(value);
         
            screen.printf("The square root of " + value + " is " + result);
            screen.flush();
          
            screen.println();
            screen.flush();
          
            screen.println("Enter a number: ");       
            screen.flush();
         }
      
         screen.println("Done.\n");       
         screen.flush();
      }
    
   }
