In C++, define a “Conflict” function that accepts an array of Course object pointers. It will return two numbers: - the count of courses with conflicting days. If there is more than one course scheduled in the same day, it is considered a conflict. It will return if there is no conflict. - which day of the week has the most conflict. It will return 0 if there is none. Show how this function is being called and returning proper values. you may want to define a local integer array containing the count for each day of the week with the initial value of 0. Whenever you have a Course object with a specific day, you can increment that count for that corresponding index in the schedule array.
In C++, define a “Conflict” function that accepts an array of Course object pointers. It will return two numbers:
- the count of courses with conflicting days. If there is more than one course scheduled in the same day, it is considered a conflict. It will return if there is no conflict.
- which day of the week has the most conflict. It will return 0 if there is none.
Show how this function is being called and returning proper values.
you may want to define a local integer array containing the count for each day of the week with the initial value of 0.
Whenever you have a Course object with a specific day, you can increment that count for that corresponding index in the schedule array.

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images









