Question: I need help programing this in C. In Milestone 1, your tasks are to obtain the user input for month and year using a single

I need help programing this in C. I need help programing this in C. In Milestone 1, your tasksare to obtain the user input for month and year using a

In Milestone 1, your tasks are to obtain the user input for month and year using a single scanf statement. NOTE: You do not need to validate the range of the inputs for this milestone. determine the number of days in the month NOTE: You will need to account for leap years if the user selects February . determine the day of the weelk the month starts on. NOTE: This can be done by computing the Julian day print the output for the number of days in the month and the day the month starts on. Here is an example run of the program for Milestone 1 (user input in bold): Enter month and year: 9 2818 There are 38 days in the month The month starts on a Saturday Another example run (user input in bold): Enter month and year: 2 1996 There are 29 days in the month The month starts on a Thursday Approach/Hints Number of davs in month To determine the number of days in the month: January, March, May, July, August, October, and December each have 31 days . April, June, September, and November each have 30 days February has 28 days, except in leap years, when it has 29 days Leap Years A year is a leap year if either: . It is evenly divisble by 4 and not evenly divisible by 100, or It is evenly divisible by 400 For example, 1996 and 2000 were leap years, but 1900 and 2003 were not leap years

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!