Microsoft Word - project1.docx Project 01: Write a C++ program to print out calendar.  Ask the user which year to display.  Display the calendar for 12 months.  The code keeps on running until the...

1 answer below »
c++ program to print out a calendar


Microsoft Word - project1.docx Project 01: Write a C++ program to print out calendar.  Ask the user which year to display.  Display the calendar for 12 months.  The code keeps on running until the user ask to exit. Your output should be similar with the following example: Tips: According to the Gregorian calendar, it was Monday on 01/01/01. Leap year: a year that has 366 days (29 days in February). There is a leap year every year whose number is perfectly divisible by four - except for years which are both divisible by 100 and not divisible by 400. For example: the century years 1600 and 2000 are leap years, but the century years 1700, 1800, and 1900 are not. This means that three times out of every four hundred years there are eight years between leap years.
Answered Same DayMar 25, 2021

Answer To: Microsoft Word - project1.docx Project 01: Write a C++ program to print out calendar.  Ask the user...

Ankit answered on Mar 25 2021
142 Votes
#include
#include
using namespace std;
int main()
{
int m, y; //m for m
onth and y for year
int countdays;


    cout << "Please Input the year:";
cin >> y;
    cout << endl;
    cout << "Please Input the month:";
        cin >> m;
        cout << endl;



...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here