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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!