Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions

Question

What is a no-load or low-load life insurance policy? Explain.

Answered: 1 week ago

Question

At what level(s) was this OD intervention scoped?

Answered: 1 week ago