Write a C function seconds_since_jan1() that takes the time as six integer arguments (year, month, day, hour,
minute, and second) and returns the number of seconds since the beginning of the year. Use numbers 1
through 12 to represent months. Use numbers 0 through 23 to represent hours. Use the year number to
determine the number of days in February.
Use this function to calculate the amount of time in seconds between January 28, 2014, 12:35 pm and May 22,
2014, 1:15 pm.
For each set of integers below, write a single statement that will print a number at random from the set. (Hint:
Learn to use the library function rand().)
(a) 2, 4, 6, 8.
(b) 3, 7, 11, 15, 19