/**
* Program to convert temperature from fahrenheit to celcius.
*
* @author (MrK)
* @version (v1.0, Feb 10 ,09)
*/
import java.util.Scanner;
public class tempInF
{
public static void main(String [] args)
{
Scanner keyIn = new Scanner(System.in);
double tempf, tempc;
String city;
System.out.println("Programmer: MrK");
System.out.println("Course: COSC 111, Winter 2009");
System.out.println("Exam#: 1");
System.out.println("Due Date: 2-10-09\n");
System.out.print("Enter the name of the city: ");
city = keyIn.nextLine();
System.out.print("\nEnter the temperature in degrees Fahrenheit: ");
tempf = keyIn.nextInt();
tempc = (5.0 / 9.0) * (tempf - 32) ;
System.out.printf("\nTemperature in %s is %.1f degrees Celsius", city, tempc);
}
}