Hey guys i have to create a program which is based on the unix calendar command which shows the ascii calendar in the format of

example:

March
mon tu wed thu fri sat sun
1 2 3 4 5 6
7 8 etc etc


But the program will run by typing in a month from 0 - 12 , 0 is suppose to be valid because if the user types 0 it will display all months. But if the user types 1 for example it will just display january. But after you have typed in the month you type in the year considering the leap years then it will display the month.


I have done some input for both month and year functions but how will i create teh rest of the algorith could someone explain it very simply please? thnxs

joey