Question: please complete in C language In this assignment, you will write a program that has two functionalities: First, it outputsthe weeks of a Gregorian month
please complete in C language
In this assignment, you will write a program that has two functionalities: First, it outputsthe weeks of a Gregorian month given a year number and month name. For example, if theuser requests to see the weeks of January 2021, your program should draw the followingtable on the screen:
Su Mo Tu We Th Fr Sa
1 2 3 4 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 numberof days between two dates; e.g. given the dates 01/06/2021 01/12/2021, your programshould prints 6 on the screen; while for input 01/12/2021 01/06/2021, you program mustprint -6 on the screen.1 Program Input CommandsThere are two valid commands for your program: count MM/DD/YYYY mm/dd/yyyyand 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 shouldprint an error message.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
