Question: Write a program in C++ using if-else statements, switch statements, and/or loops that prints a month's calendar. The program must prompt user to enter a

Write a program in C++ using if-else statements, switch statements, and/or loops that prints a month's calendar. The program must prompt user to enter a month, amount of days in the month and start day. Must validate the inputs, display the formatted calendar (can use setw function), ask if user wants to print another calendar, and repeat until user is done. Example test case Enter a month (1 to 12): 13 Enter a month (1 to 12): 1 Enter days in the month (28, 29, 30, or 31): 25 Enter days in the month (28, 29, 30, or 31): 31 Enter start day (0 to 6): 7 Enter start day (0 to 6): 5 JANUARY Sun Mon Tue Wed Thr Fri Sat 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 Do you want to print another month? (y) y
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
