Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise # 2 : I need with c + + Which Semester Shalaby has finally decided to be a more organized student. He is currently

Exercise #2: I need with c++Which Semester
Shalaby has finally decided to be a more organized student. He is currently trying to archive his class notes and has decided to keep a folder for each semester.
Using the date written on his class notes, Shalaby wants you to write a program, where he can enter the month, and you can enter the semester. Your program should make use of the "switch" control. Use the table below.
\table[[Output,Month Values],["You are in Fall Semester",if the value of variable month is 9,10,11,12 or 1],["You are in Spring Semester",if month is 2,3,4 or 5],["You are in Summer Semester",if month is 6, or 7],["Invalid month number!",if otherwise]]
Sample input / output:
Enter value of your month 4 You are in Spring Semester
Enter value of your month 50 Invalid month number!
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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions