Question: C++ program, calendar for the whole year..please comment out as much as possible. Thanks 12. Write a program that prints a c or a vear.
C++ program, calendar for the whole year..please comment out as much as possible. Thanks



12. Write a program that prints a c or a vear. Prompt the user for W of the wee January 1 is on and whether the year is a leap year. The day that January 1 is on is coded as follows: Sun 0 Mon 1 Tue 2 Wed 3 Thu 4 Fri 5 Sat 6 Hint: Use a switch statement inside a for or while loop for the months. Expected Output Enter day of the week for January 1 4 Enter day leap year code (1 for leap year, 0 for non-leap year)0 January Su Mo Tu We Th Fr Sa 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 February 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 March 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 April SuMo Tu We Th Fr Sa
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
