Computing.Net > Forums > Programming > C++ Emergency

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

C++ Emergency

Reply to Message Icon

Name: Sam Cobb
Date: October 28, 2002 at 11:02:40 Pacific
OS: Windows XP
CPU/Ram: PIII / 128 MB RAM
Comment:

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?



Sponsored Link
Ads by Google

Response Number 1
Name: doh
Date: October 28, 2002 at 11:28:16 Pacific
Reply:

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.


0

Response Number 2
Name: Mark
Date: October 28, 2002 at 12:08:45 Pacific
Reply:

ditto, do your own homework


0

Response Number 3
Name: Jim
Date: October 28, 2002 at 13:45:30 Pacific
Reply:

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.

Zeller's Congruence


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Free MFC Online books??? Macro Problems in Excel



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C++ Emergency

C++ HELP - symbol reference errors www.computing.net/answers/programming/c-help-symbol-reference-errors/17051.html

C++ prgramming help www.computing.net/answers/programming/c-prgramming-help/18183.html

C++ compiling error www.computing.net/answers/programming/c-compiling-error/20145.html