Question: Here is a simple driver: #include #include #include Participant.h #include MeetingScheduler.h using namespace std; int main ( ) { cout < < Meeting

Here is a simple driver:
#include
#include
#include "Participant.h"
#include "MeetingScheduler.h"
using namespace std;
int main()
{
cout << "Meeting Scheduler" << endl;
Participant* p1= new Participant("Mark", "mmahoney@carthage.edu", "(262)551-5869");
Participant* p2= new Participant("Laura", "laura@mail.com", "(262)551-1234");
Participant* p3= new Participant("Buddy", "buddy@mail.com", "(262)551-2345");
Participant* p4= new Participant("Patrick", "patrick@mail.com", "(262)551-3456");
//create a meeting scheduler for a 45 minute meeting
MeetingScheduler scheduler(45);
//add p1 to the scheduler as available on Monday from 9:00 to 10:00
scheduler.setAvailable(p1, MONDAY, "9:00am","10:00am");
//add p2 to the scheduler as available on Monday from 8:00 to 1:00
scheduler.setAvailable(p2, MONDAY, "8:00am","1:00pm");
//add p3 to the scheduler as available on Monday from 8:15 to 10:15
scheduler.setAvailable(p3, MONDAY, "8:15am","10:15am");
//have the scheduler find available meeting times
scheduler.findAvailableMeetingTimes();
//clean up the objects created on the heap
delete p1;
delete p2;
delete p3;
delete p4;
return 0;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!