Goldilocks is suffering from an acute case of thermoanesthesia which has left her unable to properly perceive the temperature of bowls porridge. Fortunately, you have offered to help her with this problem by creating a Java program that can do it for her. Write some selection code below involving the variables (both of type double) with the identifiers porridgeTemperature and idealTemperature to indicate whether the porridge is "too hot", "too cold", or "just right" by printing one of those messages out.
a) if (porridgeTemperature > idealTemperature) { System.out.println("Too hot"); } else if (porridgeTemperature < idealTemperature) { System.out.println("Too cold"); } else { System.out.println("Just right"); }
b) if (porridgeTemperature > idealTemperature) { System.out.println("Just right"); } else if (porridgeTemperature < idealTemperature) { System.out.println("Too cold"); } else { System.out.println("Too hot"); }
c) if (porridgeTemperature < idealTemperature) { System.out.println("Too hot"); } else if (porridgeTemperature > idealTemperature) { System.out.println("Too cold"); } else { System.out.println("Just right"); }
d) if (porridgeTemperature < idealTemperature) { System.out.println("Too hot"); } else if (porridgeTemperature > idealTemperature) { System.out.println("Just right"); } else { System.out.println("Too cold"); }