Question: 4 USING THE SWITCH STATEMENT & JOptionPane for input and output - Write a java program where the user enters a temperature as a whole
4 USING THE SWITCH STATEMENT & JOptionPane for input and output - Write a java program where the user enters a temperature as a whole number from input, and outputs a "most likely" season (either SUMMER, SPRING, FALL or WINTER) depending on the temperature entered. Either enter 40 or 60 or 80 or 100 SUMMER would be 100 SPRING would be 80 FALL would be 60 WINTER would be 40 Consider it an error if the user ever accidentally enters any other value. Enghus 43 Words
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
