First you have to ask the user to input a year. You may assume that the user will only input integers. However, you have to verify that the user’s input is within the valid range of integers (any integer between 1 and 9999 [inclusive]). If the user enters an invalid year your program should print the following message “Invalid value for Year. Good bye!” and stop.
Next you have to ask the user to input a month. Once again you may assume that the user will only input integers. However, you have to verify that the user’s input is within the valid range of integers (any integer between 1 and 12 [inclusive]). If the user enters an invalid month your program should print the following message “Invalid value for Month. Good bye!” and stop.
If you find a leap year your program should output “The year you entered is aleap year.”, otherwise it should output “The year you entered is NOT a leap year.”
Finally your program should output the name of the month in English and the number of days based on the user’s input for month.
Next you have to ask the user to input a month. Once again you may assume that the user will only input integers. However, you have to verify that the user’s input is within the valid range of integers (any integer between 1 and 12 [inclusive]). If the user enters an invalid month your program should print the following message “Invalid value for Month. Good bye!” and stop.
If you find a leap year your program should output “The year you entered is aleap year.”, otherwise it should output “The year you entered is NOT a leap year.”
Finally your program should output the name of the month in English and the number of days based on the user’s input for month.