Sunday, July 12, 2009

C/C++ programmers ...please help ?

hi ...i need a solution for this question :





Write a c++ program that will read these values from the user :








24/11/2007 sunday will be entered like this :





24





11





2007





sunday ...or any desired day or date








then the user will enter a date from the past like 19/10/2007 and the program must estimate which day in the week is the entered date ...





for example if he entered 22/11/2007 the program will estimate the day to be friday ....





please if any one knows how to solve this question help and i appreciate that ....

C/C++ programmers ...please help ?
make the program to calculate number of days. Create a list of days of week (monday thru sunday) and have the program to go backward on the indexes of the list if the date entered is earlier or forward if the date is future. When it reaches the end or the beginning of the list create a condition that it will count again on the list until you reached the number of days. Then call the index on the list


No comments:

Post a Comment