Page 1 of 1

Can you write this in C++ 6. (Program) Construct a Date class function named isWeekday() that returns a Boolean value of

Posted: Wed Apr 27, 2022 3:08 pm
by answerhappygod
Can you write this in C++ 6.
(Program) Construct a Date class function named isWeekday() that
returns a Boolean value of true if the date is a weekday;
otherwise, it should return a false value. The function should call
the dayOfWeek() function written for Exercise 5a, and then use the
returned integer value to determine whether the day is a weekday. A
weekday is any day from 2 to 6, which corresponds to the days
Monday through Friday. b. Include the function written for Exercise
6a in a complete program. For testing purposes, use the fact that
March 12, 2011, was a Saturday and March 15, 2011, was a
Tuesday.