Question: Java programming Write an application (DaysMonth) that reads in from the user the month (1 = Jan., 2 = Feb., etc) and the year and
Java programming
Write an application (DaysMonth) that reads in from the user the month (1 = Jan., 2 = Feb., etc) and the year and prints out the number of days in that month and year. The program should print out (for example): February of 2000 has 29 days. The program should allow the user to continue entering month/year until a sentinel is entered and the program terminates (with the words Good Bye). Use the switch conditional to do this problem (Hint: use the LeapYear program to figure out the number of days in February). You should test February of the following years: 1900, 2000, and one other month/year (any one) to test it!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
