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. You can't define functions or use Void. Everything should be written inside int main(). Code should be written in this type of format: #include using namespace std; int main() { /* Type your code here. */ return 0; } 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 as a result is in the two images attached
Write a c++
You can't define functions or use Void. Everything should be written inside int main().
Code should be written in this type of format:
#include <iostream>
using namespace std;
int main() {
/* Type your code here. */
return 0;
}
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 as a result is in the two images attached.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 5 images