Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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