Question: Problem 4 (5 points) Write a program that prompts the user for two integer numbers. The first integer represents the month of a year, and

 Problem 4 (5 points) Write a program that prompts the user

Problem 4 (5 points) Write a program that prompts the user for two integer numbers. The first integer represents the month of a year, and the second integer represents the day of the month. So, the two numbers entered represent a date in the year. Using this date your program should output what season it is. If the date falls between 12/20 and 3/19, your program should output Winter. If the date falls between 6/20 and 9/19 your program should output Summer, 3/20 to 6/19 would be Spring, and 9/20 and 12/19 would be Fall. The output will look like this: Enter an integer for the month : Enter an integer for the day : 29 6/29 is in the season of 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!