It’s Friday, and time again for the Friday Fragment: our weekly programming-related puzzle.
This Week’s Fragment
This year has Friday Fragments marking Christmas Eve and New Year’s Eve. With that and another year change in mind, let’s do a simple calendar-related puzzle:
Write code to calculate the day of week (Sunday through Saturday) for a given date. Remember to account for leap years.
To play along, post the code for the solution as a comment or send it via email.
Last Week’s Fragment – Solution
With last week’s puzzle, we conclude our round of game programming: