Function Templates Exercises

In a group of 2-4 people, answer the following:
  1. Why do we have function templates? What is the quintessential function template?
  2. Write a templated function, getTotal() that adds every element of an array, and returns the total.
    • Are there any "gotchas"?