Question: Using dev c++ but compiled in c source files (*.c) Create a program that will display the calendar of February of any year. The program
Using dev c++ but compiled in c source files (*.c) Create a program that will display the calendar of February of any year. The program also requires the user to enter the start day of week for the first of February. Hint: This program requires two loops: one loop to correctly position the printing of the first day of the month and the other loop to print the dates in the calendar. The sample output is shown below. NOTE: User inputs are shown in italics and underlined Enter a 4-digit year (e.g. 2014) 2012 1-Feb falls on which day (e.g. 1 for Sunday, 7 for Saturday) ? 4 Calendar for February 2012 Sun Mon Tue Wed Thu Fri Sat 5 6 7 89 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Do you want another year (Y for Yes, N for NO) ? Enter a 4-digit year (e.g. 2014) 2015 1-Feb falls on which day (e.g. 1 for Sunday, 7 for Saturday)?9 Incorrect day of week! 1-Feb falls on which day (e.g. 1 for Sunday, 7 for Saturday)? 1 Calendar for February 2015 Sun Mon Tue Wed Thu Fri Sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
