Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that asks the user for a month as a number between 1 and 12. The program should display a message indicating whether

Write a program that asks the user for a month as a number between 1 and 12. The program should display a message indicating whether the month is in the first quarter , the second quarter , the third quarter , or the fourth quarter of the year . Following are the guidelines : If the user enters either 1 , 2 , or 3 , the month is in the first quarter . If the user enters a number between 4 and 6 , the month is in the second quarter . If the number is either 7 , 8 , or 9 , the month is in the third quarter . If the month is between 10 and 12 , the month is in the fourth quarter . If the number is not between 1 and 12 , the program should display an error

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_2

Step: 3

blur-text-image_3

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

Build It For The Real World A Database Workbook

Authors: Wilson, Susan, Hoferek, Mary J.

1st Edition

0073197599, 9780073197593

More Books

Students also viewed these Databases questions

Question

2. What process will you put in place to address conflicts?

Answered: 1 week ago