Question: /* Part 1: declare an integer variable named season whose valid values are 1, 2, 3 and 4 which represent the seasons winter, spring, summer
/* Part 1: declare an integer variable named season whose valid values are 1, 2, 3 and 4 which represent the seasons winter, spring, summer and fall respectively, and any other variables you might need for Parts 2 & 3 */
/* Part 2: write a loop that contains a switch statement that prints out an appropriate message for each of the valid values for the variable season and indicate an invalid value otherwise. */
/* Part 3 write a loop that contains a nested if statement that prints out an appropriate message for valid values of the variable season, and indicates an invalid value otherwise. */
*Please write program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
