Question: In C++. Using set(w) as well. (Displaying calendar) Write a program that prompts the user to enter the year and first day of the year
In C++. Using set(w) as well.


(Displaying calendar) Write a program that prompts the user to enter the year and first day of the year and displays on the console the calendar table for the year. For example, if the user entered the year 2005, and 6 for Saturday, January 1, 2005, your program should display the calendar for each month in the year, as follows: Ex: If the input is: 2005 6 the output is: January 2005 Sun Mon Tue Wed Thu Fri Sat 1 2. 3 5 8 9 4 11 18 13 10 17 15 7 14 21 12 19 26 16 20 22 23 24 25 27 28 29 30 31 December 2005 Sun Mon Tue Wed Thu Fri Sat 1 3 2 9 4 5 6 7 8 10 17 11 13 14 15 16 18 12 19 26 21 20 27 22 29 23 30 24 31 25 28 (Hint: the number of days in February for the different years may be different, which depends on whether it is a leap year or a plain year. A year is a leap year if either (1) or (2) holds: (1) it is divisible by 400. (2) it is divisible by 4 but not divisible by 100. 304750.1824638 LAB ACTIVITY 4.16.1: LAB: Week1_Part2 0/55 main.cpp Load default template... 1 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
