Write a program to accept a date in the string format dd/mm/yyyy and accept the name of the day on that Date. Input another Date and find the day for the given date.
Example:
INPUT :
First Date : 5/7/2009
Day on 5/7/2009 : SUNDAY
Second Date : 24/10/2009
OUTPUT:
Day on 24/10/2009 : SATURDAY
Test run the program on the following inputs.
INPUT DATE DAY on First Date SECOND DATE Day of Second Date
24/4/2008 THURSDAY 18/8/2008 MONDAY
20/1/2010 WEDNESDAY 23/9/2010 THURSDAY
The program should include the part for validating the inputs namely the date and the day on given date of that year.