Question: in C please In this assignment, you will write a program that has two functionalities: First, it outputs the weeks of a Gregorian month given
in C please
In this assignment, you will write a program that has two functionalities: First, it outputs the weeks of a Gregorian month given a year number and month name. For example, if the user requests to see the weeks of "January 2021", your program should draw the following table on the screen: Su Mo Tu We Th Fr Sa 1 2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Another functionality of your program is that it should be able to count the number of days between two dates; e.g. given the dates "01/06/2021 01/12/2021", your program should prints 6 on the screen; while for input "01/12/2021 01/06/2021", you program must print -6 on the screen. 1 Program Input Commands There are two valid commands for your program: "count MM/DD/YYYY mm/dd/yyyy" and print MM/YYYY" where mm and MM represent months, dd and DD represent days, and yyyy and YYYY represent years. If an invalid command is entered, your program should print an error message. In this assignment, you will write a program that has two functionalities: First, it outputs the weeks of a Gregorian month given a year number and month name. For example, if the user requests to see the weeks of "January 2021", your program should draw the following table on the screen: Su Mo Tu We Th Fr Sa 1 2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Another functionality of your program is that it should be able to count the number of days between two dates; e.g. given the dates "01/06/2021 01/12/2021", your program should prints 6 on the screen; while for input "01/12/2021 01/06/2021", you program must print -6 on the screen. 1 Program Input Commands There are two valid commands for your program: "count MM/DD/YYYY mm/dd/yyyy" and print MM/YYYY" where mm and MM represent months, dd and DD represent days, and yyyy and YYYY represent years. If an invalid command is entered, your program should print an error message
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
