Question: Write a program that prompts the user for the month of the year as a number (i.e., where I corresponds to January, 2 corresponds

Write a program that prompts the user for the month of the year as a number (i.e., where I corresponds to January, 2 corresponds to February,... and 12 corresponds to December). Also prompt the user for the year. Based on the user inputs and using nested conditional statements, determine if the year a leap year or not and display this information to user. Also, tell the user how many days are in the month of the corresponding year (e.g., There are 31 days in JAN 2023.). Use the first three letters of the month's name in the displayed sentence. Run the code for the following cases: a) February 2020 b) February 2023 c) November 2015
Step by Step Solution
There are 3 Steps involved in it
Here is a Java program that prompts the user for the month and year and then determines if the year ... View full answer
Get step-by-step solutions from verified subject matter experts
