Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

13. You always should try to make a good first impression.

Answered: 1 week ago