Hey guys I am having a problem knowing where to start on writing this Leap Year program that wants a day number output. Here is the scenario:

Write a function *dayNumber* that returns the day number (1 to 366) in a year for a date that is provided as input data. Your function should accept the month (1 through 12), day, and year as integers. As an example. For example, January 1, 1994 is day one. December 31 2004 is day 366 because its a leap year. A leap year is divisible 4, except that any year is divisible by 100 is a leap year only if it is divisible by 400. Write a second function that returns **true** if its argument, a year, is a leap year.

Also I cannot use loops or arrays of any sort. Just calling on these subprograms. Any help would be much appreciated!

The Neophyte Programmer.