Answered step by step
Verified Expert Solution
Link Copied!

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 3(30 Points): The dates for each season in the northern hemisphere are:
Spring: March 20- June 20
Summer: June 21- September 21
Autumn: September 22- December 20
Winter: December 21- March 19
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 Input/Output for understanding.
Sample Input 1:
Input 1: Enter Date: April 11
Output: Spring
Input 2: Enter Date: Blue 65
Output: Invalid
You must test the following test cases with your code and attach the output.
Input 1: Enter Date: August 33
Output: ??
Input 2: Enter Date: March 07
Output: ??
Input 3: Enter Date: July 13
Output: ??
Input 4: Enter Date: Ocean 17
Output: ??
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

Explain the factors influencing wage and salary administration.

Answered: 1 week ago

Question

Examine various types of executive compensation plans.

Answered: 1 week ago

Question

1. What is the meaning and definition of banks ?

Answered: 1 week ago