Question: In C + + , Write a function start _ day ( ) to determine whoch day of the week is the 1 st of

In C++, Write a function start_day() to determine whoch day of the week is the 1st of a given month in a given year for any year and any month starting with 2000. The function should take as input parameters the year number and themonth number (in a year) and return as a result an integer from 1 to 7,where 1 is a Monday, 2 is a Tuesday, 3 is a Wednesday, 4 is a Thursday,5 is a Friday, 6 is a Saturday and 7 is a Sunday. Assume that the 1st of January 2000 was a Monday.
You may want to use the following variable in your program:
days_in_month[]={31,28,31,30,31,30,31,31,30,31,30,31};

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!