public class Temperature { public static void main(String[] args) { Scanner console = new Scanner(System.in); System.out.print("What was today's high and low, in Fahrenheit? "); int highF = console.nextInt(); int lowF = console.nextInt(); int highC = ftoc(highF); int lowC = ftoc(lowF); System.out.println("High and low in Celsius: " + highC + ", " + lowC); } public static int ftoc(int tempF) { double tempCprecise = 5.0 / 9.0 * (tempF - 32); int tempC = (int) Math.round(tempCprecise); return tempC; } }