Write a c++ program to display a calendar for a given year. Type of Branches such as switch statements, if-else, and etc. should be used as well. No creation of functions is allowed to be used....

Write a c++ program to display a calendar for a given year. Type of Branches such as switch statements, if-else, and etc. should be used as well. No creation of functions is allowed to be used. Everything should be written in the main in one.

- Ask a user to enter the year and the new year's day of the year entered:

cout <"enter>

cout <">

a leap year is:

IF year%4 = 0 AND year%100 != 0 OR year%400 = 0

- An example of what the program should display is in the two images attached.

- Code should be written in this type of format:

#include using namespace std;

int main() {

/* Type your code here. */

return 0;}




May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here