Question: Hi there, I have a question that I need help with for my Java class. It reads as follows- Write a program that reads a
Hi there, I have a question that I need help with for my Java class. It reads as follows- Write a program that reads a temperature as a whole number from the keyboard and outputs a "probable" season (Winter, Spring, Summer, or Fall) depending on the temperature. 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 ore less than -5, then you should output that the temperature entered is outside the valid range.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
