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
Get step-by-step solutions from verified subject matter experts
