Question: This is a C++ program, please make sure it can run in visual studio. Thank you. // Display both averages Sample I/O display(epaAve, ageAve); Original
// Display both averages Sample I/O display(epaAve, ageAve); Original array a: 9 1750 Original array s: WINNERS NEVER QUIT Original array c:e o ua i //terminate program system("pause"); return 0; Sorted array a: 0 1 579 Sorted array s: NEVER QUIT WINNERS Sorted array c:a eiou 2. Given the folloing arrays int a[5) 19,1,7,5,0); string s(4]-("WINNERS","NEVER" "QUIT" char c[5)- ['e','o', 'u', 'a', T) Write a function template Show to display each array. Use the following calling statements a. Show( a, 5); Show(s,4); Show (c, 5); b. Use the sort member of
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
