   import java.util.Scanner;
	import java.io.*;
/************************************ 
* This class is called rooter
* 
* @author Josh Goldenberg
* @version 1 1/22/07
************************************
* i received no unauthorized help on this assignment
*/

    public class IO_goldenjw_Rooter
   {
       public static void main(String[] args)
      {
         double          value, result;       
         PrintWriter     screen;       
         Scanner         keyboard;
       
         screen   = new PrintWriter(System.out);       
         keyboard = new Scanner(System.in);
      
         System.out.print("Enter a number: ");    
       	
       
         while (keyboard.hasNext())
         {
            value = keyboard.nextDouble();
            result = Math.sqrt(value);
         
            screen.printf("The square root of " + value + " is " + result);
            screen.flush();
          
            screen.println("Enter a number: ");       
            screen.flush();
            
         }
      
         screen.println("Done.\n");       
         screen.flush();
      }
    
   }
