CMSC 341 -- Spring 2003 -- Project 1 Copy this file into your directory and edit it to add your answers to the following questions about project 1. These questions count for 10% of your project grade. 1. (5 points) Suppose that you have successfully implemented the Bag class and you wanted to use it to implement a Set - i.e. a Bag with no duplicates, and no maximum number of elements. Describe how you would have to modify your Bag class implementation to create a Set class. 2. (5 points) The Bag class was defined as a template so that it could hold any type of object. However, in the main routine we had to figure out what the type was and call a special routine for each. Using this approach, if there are M possible object types we would potentially need to implement M routines for handling command files. Given that Bags are templated, why were we forced to have one routine for object type? Please be clear and explicit. Suggest a way that the assignment could have been restructured to avoid this problem, or argue that no such restructuring is possible.