Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 3 ( 3 0 Points ) : The dates for each season in the northern hemisphere are: Spring: March 2 0 - June 2
Question Points: The dates for each season in the northern hemisphere are:
Spring: March June
Summer: June September
Autumn: September December
Winter: December March
Write a program that takes a date as input and outputs the date's season in the northern hemisphere. The input is a string to represent the month and an int to represent the day. You need to check if the string and int are valid an actual month and day Check the following sample InputOutput for understanding.
Sample Input :
Input : Enter Date: April
Output: Spring
Input : Enter Date: Blue
Output: Invalid
You must test the following test cases with your code and attach the output.
Input : Enter Date: August
Output:
Input : Enter Date: March
Output:
Input : Enter Date: July
Output:
Input : Enter Date: Ocean
Output:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started