Question: COP-4338 System Programming Programming Assignment 2: Intro to C Programming FIU School of Comp. & Info Sciences In this assignment, you will write a program

COP-4338 System Programming Programming Assignment 2: Intro to C Programming FIU School of Comp. & Info Sciences 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 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 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. 1 2 Submissions You need to submit a .zip file compressing the C source file(s) related to the assignment (.c files).

Using this shell for the program.

COP-4338 System Programming Programming Assignment 2: Intro to C Programming FIU School

Fago 1 - 200 + print 1 ltd. destrange aderare X_CONTRER. LENGTH 13 rondicher and sweeth cher Lasttraiter for iD:12 naingth - 1 AR (CO[1] - gotchar()) I'LL les character and[s]; .) - return lastCharacter voud tordera shar tacere.co of concentre, MOTOREN LENINY printf("Too many arguments for print it must be in the former petansardaretoken, AX.COMRAD TOKEN LENTA) 3 ...... Erintf("printing the wake of month XV, con); Your esse for Finticular com ere: ) vous rendu fer loren. SWOTOREN LENGTH: star tacers MAXCTOREN_LENGTH sf lontanderton, MAX_CON_TOKEN_LANSTH! == printf("on to arguments for count and it wist te in the form of or of count MUDYYYw/www.al ir foretanderton, MAX COMMAND TOKEN_LENGTH - ''){ CON printf("Too many argumenta fer count command it must be in the forest U/WYM while (coworocco2, MAX.CORANDTOKEN LENT! return rinti Counting my frons to, token tone) your code for printing calendar com here: shar card/MAX_CCN_TEREN_LENGTH: star las cher while 13) printf("Please writer & command..."); COWO TOKEN LENTHE if (strapcomind, Buit"> breaki florecomandarine"> (lastCharacter ... the form of print. To twargamenta ter print command state in darinti), ele af strecomandant">> s (lattcharter else printf("Toate arguments for count command it sust be in Le form of con HR/YYYY.VI) Cont): .. le Quit, quit, PHP, AP unt"); print valid command our command mit start that with in sharacter in Inteturutter = ptdur=[cusant, MAXCOMMANDTONEX LENGTH: )

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!