#include <iostream>
usingnamespace std;
int main()
{
int m,d,y,c,x=0,z;
cout << "This program will tell you the day of the inputs:" << endl;
cout << "What is the day of the month?: "<< endl;
cin >> d;
cout << "What is the number of the month from the months table?: "<< endl;
cout << "Jan, Oct = 0"<< endl;
cout << "May = 1"<< endl;
cout << "Aug = 2"<< endl;
cout << "Feb, Mar, Nov = 3"<< endl;
cout << "Jun = 4"<< endl;
cout << "Sep, Dec = 5"<< endl;
cout << "Apr, Jul = 6"<< endl;
cout << "Exceptions: If it is a leap year, Feb = 2 and Jan = 6"<< endl;
cin >> m;
cout << "What is the last 2 digits in the year?: "<< endl;
cin >> y;
cout << "What is the century's number in the 100s of years table?: "<< endl;
cout << "14th century: 6" << endl;
cout << "15th century: 5" << endl;
cout << "16th century: 4" << endl;
cout << "17th century: 3" << endl;
cout << "18th century: 2" << endl;
cout << "19th century: 1" << endl;
cout << "20th century: 0" << endl;
cin >> c;
x=(d+m+y+(y/4)+c);
z=x%7;
cout << x << "Is now divided by 7" << endl << "The day of the week is: " << z << endl;
cout << "The days of the week: " << endl;
if(z==0)
{
cout << "The day of the week is: saturday";
}
if(z==1)
{
cout << "The day of the week is: sunday";
}
if(z==2)
{
cout << "The day of the week is: monday";
}
if(z==3)
{
cout << "The day of the week is: tuesday";
}
if(z==4)
{
cout << "The day of the week is: wednesday";
}
if(z==5)
{
cout << "The day of the week is: thursday";
}
if(z==6)
{
cout << "The day of the week is: friday";
}
return 0;
}