Design and write a program which asks the user to enter his or her birth year, month and day using three different dialogue boxes. Your program should validate the user input as given below. You may write separate methods for each validation.
If the user enters an invalid year it should display an error message “Invalid year!”. Otherwise, the program should ask the user to enter the birth month.
If the user enters an invalid moth, it should display an error message: “Invalid month!”. Otherwise it should ask user to enter the day value.
If the user enters an invalid day, it should display “invalid day!” Otherwise your program should calculate the age of the person to the date 2016-12-31 and display it on the console window