Click to reopen instructions.

This is FRQ Question 1 from the 2019 exam. For the full instructions you will need to look at the PDF starting on page 3.

Questions of

“(a) Write the static method numberOfLeapYears, which returns the number of leap years between year1 and year2, inclusive.” (See the rest of the instructions for this question in the PDF starting on page 4.)

“(b) Write the static method dayOfWeek, which returns the integer value representing the day of the week for the given date (month, day, year), where 0 denotes Sunday, 1 denotes Monday, ..., and 6 denotes Saturday.” (See the rest of the instructions for this question in the PDF starting on page 5.)