Question: Code for the getStartDay(): /**** The method getStartDay() implements Zeller's Algorithm for determining the day of the week the first day of a month is.

Code for the getStartDay():
/**** The method getStartDay() implements Zeller's Algorithm for determining the day of the week the first day of a month is. The method adjusts Zeller's numbering scheme for day of week ( 0=Saturday, ..., 6=Friday ) to conform to a day of week number that corresponds to ISO conventions (i.e., 1=Monday, ..., 7=Sunday) Pre-Conditions: The month value, m, is 1-12 The day value, d, is 1-31, or 1-28, 1-29 for February The year value, y, is the full year (e.g., 2012) Post-Conditions: A value of 1-7 is returned, representing the first day of the month 1 = Monday, ..., 7 = Sunday ****/ public static int getStartDay( int m, int d, int y ) { // Adjust month number & year to fit Zeller's numbering system if (m
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
