Question: 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

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 or 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!