// This program reads in a temperature in degrees Fahrenheit
// and outputs the corresponding value in degrees Celsius.
// Barry Cornelius, 3 June 2000
import java.io. BufferedReader;
import java.io. InputStreamReader;
import java.io. IOException;
public class TempFor
{
   public static void main(final String[] pArgs) throws IOException
   {
      final BufferedReader tKeyboard =
                    new BufferedReader(new InputStreamReader(System.in));
      System.out.print("How many temperatures are there to convert? ");
      System.out.flush();
      String tLine = tKeyboard.readLine();
      final int tNumberOfTemperatures = Integer.parseInt(tLine);
      for (int tTemperatureNumber = 1;
               tTemperatureNumber<=tNumberOfTemperatures;
               tTemperatureNumber++) 
      {
         System.out.print("Type in a value in degrees Fahrenheit: ");
         System.out.flush();
         tLine = tKeyboard.readLine();
         final double tFahrenheit = Double.parseDouble(tLine);
         final double tCelsius = (tFahrenheit - 32.0)*5.0/9.0;
         System.out.println("In degrees Celsius, this is: " + tCelsius);
      }
   }
}
