Question: Q 1 : For a given date ( year , month, day ) , calculate how many days have passed since Jan. 1 st ,

Q1: For a given date (year, month, day), calculate how many days have passed since Jan. 1st,2000.
* There are 365 days in a regular year, 366 days in a leap year.
* Number of days for all 12 months are [31,28,31,30,31,30,31,31,30,31,30,31].
* There are 29 days in Feb if that year is leap year.
* Assume the given date is later than the starting date.
Q2: Given that January 1,2000 falls on a Saturday, what day of the week is today (1/31/2024)?(Sunday, or Monday, etc.)
Q3: What day of week for the given date: 12/31/2050?

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!