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.

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

(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 2 using namespace std; 3 4 int main() { 5 int year, dayOfWeek; 6 cin >> year>> dayOfWeek; 7 8 /* Type your code here. */ 9 10 return 0; 11 12

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!