Write a program to read a date from the user, and determine the day of week for that day. The date will be read as a string in the format like June 26, 1982. The output for this date will be Saturday. Your program must check for all error cases etc, and should be able to handle spaces, commas, uppercase-lowercase inputs and all other possibilities.
anyone plz find a solution,
I won’t write the program for you since its mostly handling inputs.
However I will answer the hard part of your question; converting the date to find the day of the week.
Use the Gaussain Algorithm; http://en.wikipedia.org/wiki/Determination_of_the_day_of_the_week
^I actually remember doing a question like this oO, where did you get the question?