Good little program, fixed it up heres the file, it only works for january at the moment though I'll let you fix the rest up, partly cos Im lazy and partly cos it'll help you understand. Also you should with program here put the declarations of all the functions at the top. Ive put a required function defition before the do_day but it should be moved to the top with the rest of the function to be defined.

cheers
kwigibo