Question: (JAVA) Write a program that will ask the user to enter the year, month, and date (either past or future date is acceptable). The program
(JAVA) Write a program that will ask the user to enter the year, month, and date (either past or future date is acceptable). The program then will produce the following output: is the year a leap year? What day of the week was the entered date? The months calendar properly formatted? Is the date in the future or the past? The number of days separating todays date and the date entered.
Sample Run :

Please enter the date to know the day and to print that month's calendar: Enter year: 2017 Enter month: 3 Enter date: 31 2017 is not a leap year. 3/31/2017 was a FRIDAY The month MARCH has 31 days. The calendar for March 2017 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 The date entered is: 3/31/2017 Today's current date and time: 1/25/2020 23:24:30 PM The date entered is before the current date. The number of days between the entered date and the current date is: 1030 BUILD SUCCESSFUL (total time: 7 minutes 16 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
