Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I need a program that you can enter in the date of any day in the last or next 100 years and it tells you what day of the week that day occurs on. Must take into effect all leap year considerations (4 yr, 20 yr, 100 yr, 1000 yr adjustments.) It is due tomorrow and I haven't started. Actually, I've been preoccupied and haven't made it to class yet this semester. Please help with some code. This is our mid-term. There are only two grades in the class and I HAVE to pass it to graduate this semester. Anyone?

Haha I don't think you'll find any help here. You can't expect people to feel too badly for a slacker such as yourself.
Besides, the economy can't get any better if people like you are graduating college(or is it high school?) and getting jobs.

Probably not a good idea to supply you with actual code. If I were the instructor, I'm sure that's not the way I would like my students to do their midterm.
That being said, knowing where to go when you are stuck is a valuable skill. I can give you a pretty good idea where to start if you're interested in doing the actual work yourself, and just need a pointer.
I recommend you do a net search on Zeller's Congruence. Here's a link to a web page with a bunch of information on your problem and similar problems. It's kinda specific to Pascal, but you could do the conversion pretty easily. Actually, your assignment has been scaled down if it only has to work on dates within a hundred years each way. Count your blessings.

![]() |
Free MFC Online books???
|
Macro Problems in Excel
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |