Aces High Bulletin Board

General Forums => The O' Club => Topic started by: Barnes828 on February 06, 2008, 04:56:06 PM

Title: Need Help With Java
Post by: Barnes828 on February 06, 2008, 04:56:06 PM
Okay this year in school i decided to take computer science.... BIG MISTAKE....

I thought this was going to be an easy computer class and a quick math credit...

At first it was easy when we did "Hello World" then moved on to boolean loops and what not... but now i have been assigned a pretty hard program.

Program Purpose: Input a date and output a day of the week. We were given the formula to figure this out but i have no idea how im going to do this...

if anyone is a master with Java or has any links to a good website that will help i  will greatly appreciate it.
Title: Need Help With Java
Post by: Sandman on February 06, 2008, 05:29:31 PM
Hmmm... why not just view the source code of this page (http://www.extremelysmart.com/diversions/DOWfinder.php) or this page (http://www.csgnetwork.com/dayoftheweekcalc.html)?
Title: Need Help With Java
Post by: Barnes828 on February 06, 2008, 05:33:37 PM
Quote
Originally posted by Sandman
Hmmm... why not just view the source code of this page (http://www.extremelysmart.com/diversions/DOWfinder.php) or this page (http://www.csgnetwork.com/dayoftheweekcalc.html)?


Thanks that should help a bit
Title: Need Help With Java
Post by: ChickenHawk on February 06, 2008, 05:35:46 PM
I remember doing this in C++ in college.  Stayed up all night getting it right.

Don't know Java and it's been too long to remember the specifics.  I just remember I had to break it up into little functions.  

Don't forget leap year.
Title: Need Help With Java
Post by: Barnes828 on February 06, 2008, 05:40:27 PM
yea finding the leap year is easy, but everything else is hard.
Title: Need Help With Java
Post by: Eagler on February 06, 2008, 08:00:56 PM
Quote
Originally posted by Barnes828
Thanks that should help a bit


don't know how much those links will help as they are javascript not java

post your formula