I need to create a program in c to print a calendar for one year, given the year and day of the week that Jan 1 falls on. Input should come from keyboard and output to a file. User needs to be prompted to enter the year and a number for which day of week Jan 1 starts on i.e. 1 for Sunday, 2 for Monday etc. I need to create one with and without using functions. Can anybody help ? I'm quite desperate.