Hi i have an assignment to do in C language but i have no idea where to start with....could anyone give me a headstart where i should start?? i dont have much experience in C programming.
i was given these information:
(a) It was Monday on the 1st of January 1900,
(b) April, Jun, September and November have 30 days,
(c) January, March, May, July, August, October and December have 31 days, and
(d) Feburary has 28 days normally, but in a leap year, it has 29 days.
Based on the general information about a calendar above, write a program that reads two dates and a day, and returns how many months within the given period start with the given day. (Note
that the first date could be before or after the second date.)
(Prompt) Period 1 (YYYYMMDD)
(Prompt) Period 2 (YYYYMMDD)
(Prompt) Day (0=Sun, 1=Mon, 2=Tue, 3=Wed, 4=Thur, 5=Fri, 6=Sat)
I've started by making the main method with the printf and scanf which reads the input of the user but i have no idea where to go next could anyone help me get started?