   import java.io.*;
   import java.util.Scanner;

/*******************************************************************
 *Computing often involves the need to process input from a file and 
 *output data to a file. This lab will provide practice in reading 
 *from and writing to files.
 *******************************************************************/
 
 /*************************
  * I have received no assistance
  *
  *
  *Vinicent Holland
  *January 21, 2007
  *InputOutput V1
  *Section 1
  **************************/

    public class IO_hollanvx_Rooter
   {
       public static void main(String[] args)
      {
         double          value, result;//declarations      
         PrintWriter     screen;       
         Scanner         keyboard;//declaration
       
         screen   = new PrintWriter(System.out);//instantiate 'screen'       
         keyboard = new Scanner(System.in);//instantiate keyboard
      
         screen.println("Enter a number: ");//user prompt 
         screen.flush(); 
       
       
         while (keyboard.hasNext())
         {
            value = keyboard.nextDouble();
            result = Math.sqrt(value);//value is squared and assigned to result
         
            screen.printf("The square root of " + value + " is " + result);
            screen.flush();
          
            screen.println("Enter a number: ");       
            screen.flush();
         }
      
         screen.println("Done.\n");       
         screen.flush();
      }
    
   }
