Question: Write java code ( Find the number of days in a month ) Write a program that prompts the user to enter the month and
Write java code
Find the number of days in a month
Write a program that prompts the user to enter the month and year and displays the number of days in the month. For example, if the user entered month and year the program should display:
February has days
If the user entered month and year the program should display:
March has days
Sample Run
Enter a month in the year eg for Jan:
Enter a year:
February has days
Sample Run
Enter a month in the year eg for Jan:
Enter a year:
April has days
Sample Run
Enter a month in the year eg for Jan:
Enter a year:
February has days
Sample Run
Enter a month in the year eg for Jan:
Enter a year:
February has days
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
