/*Determines the day of the week a certain date is*/ #include #include #include int main() { clrscr(); int month, day, year, total=0; apstring dayweek; cout<<"Enter the number of the month you were born:"; cin>>month; cout<<"Enter the day (number) you were born:"; cin>>day; cout<<"Enter the year you were born (last two digits only):"; cin>>year; total=year/4; total+=year; total+=day; if (month==1 || month==10) total+=1; else if (month==2 || month==3 || month==11) total+=4; else if (month==5) total+=2; else if (month ==12 || month==9) total+=6; else if (month==6) total+=5; else if (month==8) total+=3; if (year%4==0 && (month==1 || month==2)) total--; total=total%7; if (total==1) dayweek="Sunday"; if (total==2) dayweek="Monday"; if (total==3) dayweek="Tuesday"; if (total==4) dayweek="Wednesday"; if (total==5) dayweek="Thursday"; if (total==6) dayweek="Friday"; if (total==0) dayweek="Saturday"; cout<<"You were born on "<