public class TempDesc { public static String getDescriptor(int temp) { if (temp < 0.0) { return "frigid"; } else if (temp < 45.0) { return "cold"; } else if (temp < 65.0) { return "chilly"; } else if (temp < 75.0) { return "perfect"; } else if (temp < 90.0) { return "warm"; } else { return "hot"; } } public static void main(String[ ] args) { System.out.println(getDescriptor(-13)); System.out.println(getDescriptor(27)); System.out.println(getDescriptor(52)); System.out.println(getDescriptor(68)); System.out.println(getDescriptor(87)); System.out.println(getDescriptor(103)); } }