Posted on 2004-10-21
I am trying to begin a program for one of my classes, but I am just a blank. I was wondering if you could give me some pointers to start me off. Here is what it consists of:
Leap year function: write a function that checks the year and returns 0 for a non leap year and 1 if it is.
Valid date function: checks the year month and day, for a valid date return 1, and 0 for a non valid date.
day in year function: returns the day of the year ex. feb 14 would be 45 depending on a leap year.
first date function: checks two dates entered, if any are in valid print it out. Write out the date that comes first.
elapsed days function: enter two dates, make sure both dates are valid. ex. 1/30/2002 and 2/2/2002 four days have elapsed.
Any help you can give would be useful.