Question: On jgrasps using java 2. Instructions: Write a program where the user provides a temperature (utilizing the JOptionPane). Capture the temperature as a double. Based
2. Instructions: Write a program where the user provides a temperature (utilizing the JOptionPane). Capture the temperature as a double. Based on the temperature provided, the program (utilizing nested if-else statements) determines the "probable" season (winter, spring, summer, fall, outside of the range). If the temperature is greater than or equal to 90, it is probably summer. If the temperature is greater than or equal to 70 and less than 90, it is probably spring. . If the temperature is greater than or equal to 50 and less than 70, it is probably fall. If the temperature is less than 50, it is probably winter. If the temperature is greater than 110 or less than -5, then inform the user that the temperature entered is outside the valid range. Once you have written your program, enter temperatures to verify you can receive each of the possible message you have created
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
