Question: Design and implement a set of useful helper functions for the Date class with functions such as next_workday() (assume that any day that is not
Design and implement a set of useful helper functions for the Date class with functions such as next_workday() (assume that any day that is not a Saturday or a Sunday is a workday) and week_of_year() (assume that week 1 is the week with January 1 in it and that the first day of a week is a Sunday).
Step by Step Solution
3.52 Rating (169 Votes )
There are 3 Steps involved in it
include stdlibfacilitiesh If you know the day of the week of any day eg Jan 16 2010 is a Saturday and how to calculate leapyear exercise 910 you can f... View full answer
Get step-by-step solutions from verified subject matter experts
