import java.util.Scanner;
/**
 * @author Duncan Buell
 * 16 January 2008
 *
 * This is a simple program to accept temperatures in Fahrenheit 
 * as input from the console and convert them to Celsius.
**/

public class TempConversion2
{
  public static void main(String[] args)
  {
    double celsius,fahrenheit;
    Scanner console = new Scanner(System.in);

    System.out.println("Please enter a Fahrenheit temperature: ");
    fahrenheit = console.nextDouble();
    celsius = (fahrenheit - 32.0) * 5.0 / 9.0;
    System.out.println("Fahrenheit " + fahrenheit + " equals " + celsius + " in Celsius");
    
    System.out.println("Please enter a second Fahrenheit temperature: ");
    fahrenheit = console.nextDouble();
    celsius = (fahrenheit - 32.0) * 5.0 / 9.0;
    System.out.println("Fahrenheit " + fahrenheit + " equals " + celsius + " in Celsius");
    
    System.out.println("Please enter a third Fahrenheit temperature: ");
    fahrenheit = console.nextDouble();
    celsius = (fahrenheit - 32.0) * 5.0 / 9.0;
    System.out.println("Fahrenheit " + fahrenheit + " equals " + celsius + " in Celsius");
    
    System.out.println("Program terminating normally.");
  } // public static void main(String[] args)
} // public class TempConversion2

