1. ## Day of the week in year program advanced

Given a date (month, day, and year) display the day of the week on which that date takes/took place and
the day of the week of January 1st for that year.

Example Execution :
Enter the month: 1
Enter the day: 15
Enter the year: 2010
Date: January 1, 2010 Day of week: Friday
Date: January 15, 2010 Day of week: Friday

I got the day of the week part done just for the jan 15th , 2010. But i need help displaying the "january 15,2010" or whatever date is entered. ALso I don't have any idea how to do the 1st of the month line or the day of the week for that. PLEASSSE HELLEEPPP! SOS

2. ## program so far

Code:
```#include<stdio.h>

///////// Global Declarations

int main()
{
int y;                  /* year */
int m;                  /* month */
int d;                  /* date (day) */
int newdate;            /* day of the week */

printf("Enter the month:");
scanf("%d", &m);
printf("Enter the day : ");
scanf("%d", &d);
printf("Enter the year:");
scanf("%d", &y);

if (m < 3)
{
m = m + 12;
y = y - 1;
}

newdate = (d + (2 * m) + ((6 * (m + 1)) / 10) + y + (y / 4) -

(y / 100) + (y / 400) + 1) % 7;

switch (newdate)
{
case 0:
{
puts("Day of week:Sunday.");
break;
}
case 1:
{
puts(" Day of week : Monday.");
break;
}
case 2:
{
puts("Day of week : Tuesday");
break;
}
case 3:
{
puts("Day of week : Wednesday.");
break;
}
case 4:
{
puts("Day of week : Thursday.");
break;
}
case 5:
{
puts("Day of week : Friday.");
break;
}
case 6:
{
puts("Day of week : Saturday.");
break;
}
default:
{
puts("Day of week : Wrong Date!");
}
}

return 0;```

3. Lookup the manpage of mktime().