Question: Problem Statement Given a date in the form of Month Day, print the current season. In each of the months where the season changes, assume

Problem Statement
Given a date in the form of "Month Day", print the current season. In each of the months where the season changes, assume that the season always changes on the 21st. For example, the correct output would be "Fall" for the date "September 21" and "Summer" for the date "September 20". Note that the input to the program is month and then day, not "month day" on one line. For the full ranges:
Spring: Runs from March 21st through June 20th
Summer: Runs from June 21st through September 20th
Fall: Runs from September 21st through December 20th
Winter: Runs from December 21st through March 20th
Sample Input 1
March
30
Sample Output 1
Spring
Sample Input 2
June
21
Sample Output 2
Summer

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!