Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

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 »
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 Fe
uary).
There is a leap year every year whose number is perfectly divisible
y 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
etween leap years.
Answered Same Day Mar 25, 2021

Solution

Ankit answered on Mar 25 2021
155 Votes
#include #include using namespace std;
int main()
{
int m, y;
m for month and y for yea
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