Question: Write a C++ program that implements three templates ( functions that take any data type ) 1 ) Min function that finds the minimum value
Write a C++ program that implements three templates ( functions that take any data type )
1 ) Min function that finds the minimum value of a set of numbers.
2 ) Max function that finds the maximum value of a set of numbers.
3) Avg function that finds the average value of a set of numbers.
Use the following two different arrays in your program. Note send in each array into each function individually and display the results.
int arr1 (5 ) = { 1,2,3,4,5};
double arr2 ( 5 ) = { 3.4, 4.5, 5.6, 6.7, 8.8 };
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
