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 a calendar year to display?"; cout <<" what is the new year's day?"; 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; }
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 a calendar year to display?";
cout <<" what is the new year's day?";
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 <iostream>
using namespace std;
int main() {
/* Type your code here. */
return 0;
}
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 4 images