Description: (Use JAVA PROGRAMMING) 3.11 (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 2 and year 2012, the program should display that February 2012 had 29 days. If the user entered month 3 and year 2015, the program should display that March 2015 had 31 days. Program name: Lab03.java Sample Runs: Enter the month (1-12): 3 Enter the year (yyyy): 2019 March 2019 had 31 days Enter the month (1-12): 12 Enter the year (yyyy): 2021 December 2021 had 31 days hi I'm having trouble writing this program my output does not match the sample run thank you!
Description: (Use JAVA
3.11 (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 2 and year 2012, the program should display that February 2012 had 29 days. If the user entered month 3 and year 2015, the program should display that March 2015 had 31 days.
Program name:
Lab03.java
Sample Runs:
Enter the month (1-12): 3
Enter the year (yyyy): 2019
March 2019 had 31 days
Enter the month (1-12): 12
Enter the year (yyyy): 2021
December 2021 had 31 days
hi I'm having trouble writing this program my output does not match the sample run
thank you!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 4 images