In your textbook, this homework problem is in section 3.17 Homework 4-1.
Write a Java program that asks the user for a date entered as 4 integers: dayNumber monthNumber date year. Where:
Your prompt to the user should be:
Enter 4 integers representing dayNumber monthNumber date year:
You program will compute the proper dayName from the specified dayNumber and the proper monthName from the specified monthNumber. Your program will print out the specified date in the following format:
dayNumber monthNumber date year is dayName monthName date, year
Please note your program will have to error check the input as follows:
Please note your program will have to error check the input as follows:
Invalid day number: dayNumber, please enter a number from 1..7.
Invalid month number: monthNumber, please enter a number from 1..12.
Invalid date number: date, please enter a number from 1..31.
Invalid date: monthName, does not have date days, please enter a valid date.
Invalid date: year is not a leap year, February does not have date days, please enter a valid date.
Please note that your class should be named DateConverter.