Question: Create a while loop that will execute the following code 12 times using a counter that starts at 1 and is incremented by 1 each

Create a while loop that will execute the following code 12 times using a counter that starts at 1 and is incremented by 1 each time through the loop. Within the while loop, create a switch statement that will print out the number of days in each of the months of the year. - Use fall through capabilities so that you only have one print statement for all of the months that contain 31 days. Do not worry about leap years. .Print out the name of the month as well. You can copy and paste your monthNames array from the previous lab to help make this easier. In Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
