Question: 1.Implement the generic Box class discussed in the pdfs.2. Implement the findBox function discussed in the pdfs. Instead of an array of Boxes containing strings,



1.Implement the generic Box class discussed in the pdfs.2. Implement the findBox function discussed in the pdfs. Instead of an array of Boxes containing strings, i.e. Box, however, we want to search an array of Boxes containing ints, i.e. Box. 3. Each box contains an int representing a social security number, and thus cannot be negative. Throw another logic_error exception if the user tries to search for a negative number 4. Write a main() function to set up a small array of Box elements, and use your findBox function inside of a try-catch block. Test out your catch block by entering invalid inputs, i.e. negative numbers and numbers that aren't in your Box array. just make existing function generic.
template
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
