Question: Please Help :Using function overloading, templates, functions pointers, and files. Modify arrtemp.cpp If Visual Studio is used that would be great. Thank you in advanced.
Exam 2 Program: Modify arrtemp.cpp by removing the preassignment of the data for each array and by adding five new function templates. The first new function template should allow the user to enter the array data from the keyboard. The second new function template should print the average of the array with the smallest and largest values excluded from the average calculation. The third new function template should sort the array data in descending order. The fourth new function template should save the array data to a text file. The fifth new function template should retrieve the array data from the text file. Output should include the average of each numeric array with the smallest and largest values excluded and all three arrays being inted out in descending order twice, once before the text file is saved and once after the array is retrieved pr from the text file. (Warning - make sure to include the line template
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
