Question: C++ 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

C++  C++ Exam 2 Program: Modify arrtemp.cpp by removing the preassignment of

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 printed out in descending order twice, once before the text file is saved and once after the array is retrieved from the text file. (Warning-make sure to include the line template before each function template.) Each array should be saved to a separate text file, You will also need to show all three text files which you can do from any text editor when submitting this program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!