   import java.io.*;
   import java.util.*;
/***********************************************
 * This class takes a number and finds its square root 
 *
 * @author - Jacob Ewers
 * @version - V2 - 01/22/07
 * Lab 4
 * Section 1
 ************************************************/
    public class IO_ewersjl_Rooter
   {
   /***********************************************
   * This method takes a number and finds its square root 
   *
   * @param args            -   unused
   ************************************************/
       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.hasNext())
         {
            value = keyboard.nextDouble();		//to get the number to take the square root
            result = Math.sqrt(value);				//to take the square root
         
            screen.printf("The square root of " + value + " is " + result);
            screen.flush();
          
            screen.println("Enter a number: ");       
            screen.flush();
         }
      
         screen.println("Done.\n");       
         screen.flush();
      }
    
   }
