Question: Write a Java program that tells how many days are in a specific month. Your program should ask the user for an integer representing the

Write a Java program that tells how many days are in a specific month. Your program should ask the user for an integer representing the current month. Tell the user how many days are in that month. When the user has requested February ask whether or not the current year is a leap year, and display a 28 or 29 accordingly. In this program you must use if statements (not a switch) and compound logical expressions.

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!