Question: Write a program that prompts the user for a month of the year as an integer, such that January is 1 , February is 2
Write a program that prompts the user for a month of the year as an integer, such that January is February is December is The program will print the quarter of the year that the month belongs to: First quarter: ; Second quarter: ; Third quarter: ; Fourth quarter: It should print "The month belongs to quarter". Use a Switch statement with "break" and "default".
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
