Question: Define a C++ class named WeeklyTask that manages a task name (string) and a day in a week (1 through 7 where 1
Define a C++ class named "WeeklyTask" that manages a task name (string) and a day in a week (1 through 7 where 1 is Sunday and 7 is Saturday).
It should provide at least the following three methods: "isBusy" method to compare with another WeeklyTask object and return true if both has the same week day and false otherwise. "contains" method that accepts a search string and returns true if the task contains that search string and false otherwise. "toString" that returns a string represents the WeeklyTask object in the following format of TASK(name) DAY(
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
