Question: program in C. MUST BE DONE USING A LOOP. needs to look like the example with each box being 11 spaces wide, the days number

program in C. MUST BE DONE USING A LOOP. needs to look like the example with each box being 11 spaces wide, the days number on the left side of the box and the day.program in C. MUST BE DONE USING A LOOP. needs to looklike the example with each box being 11 spaces wide, the days of the week in the middle of the box.

validate the user input such that the month is in the range 1-12 and the year is after 4713 BC. NOTE: Consider using a while loop with appropriate conditions. print the name of the month and vear print the days of the week. Note: Each day should be left justified in a field with 11 characters. print the first week using leading blank fields (11 spaces) prior to the first day of the month. NOTE: This MUST be done using a loop. Consider how the modulo of the Julian day from Milestone 1 relates to the number of blank fields . . . , print the remaining days of the week with proper formatting such that the day number is left justified in the 11 character field. NOTE: This MUST be done using a loop. Consider logic to determine the number of trailing spaces for single digit days vs. two digit days for proper spacing , Here is an example run of the program for Milestone 2 (user input in bold) Enter month and year: 9 2818 There are 30 days in the month The month starts on a Saturday September 2818 Sunday Monday Tuesday Wednesday Thursday Friday Saturday 18 17 13 15 16 18 27 30 Another example run (user input in bold): Enter month and year: 13 2812 Invalid date, please re-enter month and year: 18 -5860 Invalid date, please re-enter month and year: 2 2818 There are 28 days in the month The month starts on a Thursday February 2818 Sunday Monday Tuesday Wednesday Thursday Friday Saturday 18 17 13 15 16 18

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!