COS120 Assignment #2
COS220 Assignment #13
Due: Sunday 5/9/21
No Late Due Date
Worth: 60 points
This program practices using the vector class and the algorithm library. Text file bangor.txt contains
names of employees who work in the Bangor store and file brewer.txt contains names of employees
who work in the Brewer store. Some people work in both stores.
For a holiday party, each person draws a person's name and brings a small gift to the party for this
person. The person cannot draw their own name so would have to draw until a different name.
Read the employee names into a vector object. A name should only be included once even if the person
works in both stores. Use of an array is not permitted.
Code should use the vector class as needed. You may wish to use a second vector to represent the "bag
of names". Code should use methods in the algorithm library when possible versus hand-coding the
required tasks. The purpose of the assignment is to use the built-in methods. Points are awarded for use
of the algorithm library.
Display the employee names in alphabetical order along with the name of the person for whom a gift
will be purchased. Your output will differ due to the random drawing of names.