Question: Class Exercise - Vectors For this weeks ICE, students will create a simple console application that simulates an attendence list. The event is a small

 Class Exercise - Vectors For this weeks ICE, students will create
a simple console application that simulates an attendence list. The event is

Class Exercise - Vectors For this weeks ICE, students will create a simple console application that simulates an attendence list. The event is a small meeting that has 5 seats in it. the availability of the seats are first come first serve. Create a function, called "AddAttendee" for adding a person to the meeting: The function should accept two parameters, the name of the new person and a reference to the vector. Throw an out or range error if the meeting is already full HINT: use pointers to edit the actual vector list Create a function, called "Removeattendee" for remowing a person from the meeting that accepts a string parameter and a reference to the vector, the name of the person to be removed. create a function that accepts a reference to the vector and displays the attendees list in alphabetical order. use a string vector to store the names of the current attendees and when done, print out the list of attendees in alphabetical order. After each add or remove, print out the current number of attendees in the main() part of the program, Use the following code for main() in the main() part of the program, Use the following code for main() 18 1 ** int main() { vector attendees; AddAttendee("John Smith", attendees); cout

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!