// // ... // Goal: Read a Fehrenheit temp., and convert // to a Celsius import java.text.DecimalFormat; // p.18 import java.util.Scanner; public class FehrToCels { public static void main(String[] args) { DecimalFormat f2 = new DecimalFormat("0.00"); Scanner input = new Scanner(System.in); double Fehrenheit, Celsius; System.out.print("Input a Fehr. temp. "); Fehrenheit = input.nextDouble(); Celsius = 5.0/9.0 * (Fehrenheit - 32); System.out.println("Cel. temp = " + f2.format(Celsius)); } }