Question: This is for a C programming class. Please read the description, its suppose to be a fairly elementary code. I really need this code so

This is for a C programming class. Please read the description, its suppose to be a fairly elementary code. I really need this code so PLEASE try your best and dont answer/waste the question saying you can't or couldn't do it. Let me know if you have any questions. Thank you.

This is for a C programming class. Please read the description, its

Description: Write a C program that prints a one-month calendar in the format shown in the sample output. The program should prompt the user for the number of days in the month and the day of the week on which the month. begins. As long as the user enters a non-zero integer for the number of days, the program should print the one- month calendar. To terminate the program, the user should enter zero for the number of days in the month. Your program should also check the validity of this input. If the user enters an integer less than 28 or greater that 31 the program should display a "Wrong input" message and prompt the user for a valid input. The output of your program should be the same as those given in the sample output. Sample output of the program Warsaw 302 a .out. Enter number of days in month: 31 Enter starting day of the week (1 Sun, 7 sat) 1 Sun Mon Tue Wed Thu Fri Sat 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Enter number of days in month: 28 Enter starting day of the week (1 Sun, 7 sat): 4 Sun Mon Tue Wed Thu Fri Sat 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Enter number of days in month: 12 Wrong input for the number of days Enter number of days in month: 34 Wrong input for the number of days Enter number of days in month: 0 Program Terminated Warsaw 303

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!