/* Java application that converts a particular Fahrenheit temperature ** (hard-coded into the program in the form of a named constant) to its ** equivalent on the Celsius scale. ** ** Author: R. McCloskey ** Date: Mar. 2015 */ public class FahToCel1 { public static void main(String[] args) { final double fahTemp = 70.5; double celTemp = fahToCel(fahTemp); System.out.println(fahTemp + "F = " + celTemp + "C"); } /* Returns the Celsius equivalent of the given Fahrenheit temperature (f). */ private static double fahToCel(double f) { return (5.0 / 9.0) * (f - 32); } }