Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SEASONS IN THE NORTH SUMMER FALL WINTER SPRING SEASONS IN THE SOUTH SUMMER FALL WINTER SPRING Write a program that will tell the user the
SEASONS IN THE NORTH SUMMER FALL WINTER SPRING SEASONS IN THE SOUTH SUMMER FALL WINTER SPRING Write a program that will tell the user the season based on the month that they enter. Write the program as a menu-based program. Refer to sample output below to understand what should be printed for the menu. The user will be entering in an integer, not a string. Use a switch statement and take advantage of "falling through" to print out "It is winter!" if the user entered 12, 1, or 2. Print out "It is spring!" if the user entered 3, 4, or 5. Print out "It is summer!" if the user entered 6, 7, or 8. Print out "It is fall, which is the best time of the year!" if the user entered 9, 10, or 11. Print "You did not enter a valid number" if the user didn't enter a number between 1 and 12. Save your program as lab4b.cpp
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