write a template for a function called total. the function should keep a running total of values entered by the user, then return the total. the argument sent into the function should be the number of values the function is to read. test the template in a simple driver program that sends values of various types as arguments and displays the results.