Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use C++ language only CALENDAR SCHEDULING REQUIREMENTS: A certain charity recruits twelve volunteers each year to spearhead its fundraising efforts. Each volunteer is assigned one

Use C++ language only image text in transcribed
image text in transcribed
CALENDAR SCHEDULING REQUIREMENTS: A certain charity recruits twelve volunteers each year to spearhead its fundraising efforts. Each volunteer is assigned one month to take the lead organizing events. As these are volunteers, the charity does it best to accommodate everyone's schedule as much as possible. Before the year begins, each volunteer is asked to give his or her top three choices for a month to serve. These preferences are likely to overlap. For example: John Mary Susan March December first choice December May March second choice February April February April third choice obviously both Susan and John cannot be assigned December, one of them will need to be assigned a different month. The best possible assignment for the three volunteers (ignoring the other nine for the moment) would be Mary March John December Susan February as John and Mary get their first choice and Susan receives her second. For twelve volunteers, the task above is humanly unmanageable, and so the charity has contacted you to automate this process for them The charity proposes that the following point system be used when determining the desirability of a particular month assignment to its volunteers: for each volunteer assigned his or her first choice 3 points for each volunteer assigned his or her second choice 2 points for each volunteer assigned his or her third choice 1 point for each volunteer not assigned any of his or her choices 0 points Thus, each of the 12! possible assignments of months to volunteers will have a desirability between 0 and 3 Your task is to find the best calendar assignment. SPECIFICATIONS Design and implement a program to find the best possible calendar assignment for the charity's volunteers. Your authored code MUST be a client of the UnsortedTvpe class presented in lecture

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

What is the relation of physical mathematics with examples?

Answered: 1 week ago

Question

What are oxidation and reduction reactions? Explain with examples

Answered: 1 week ago

Question

7. What is coaching? Is there only one type of coaching? Explain.

Answered: 1 week ago