Using the Array class in Figure 11-24, add functions that perform the following tasks:
» displays the last element in an array
» displays an element in a specified position in an array (the argument specifies the position)
» reverses the order of elements in an array
» sorts the elements in an array in ascending order
» sorts the elements in an array in descending order
» sums the elements in an array
(As a starting point, you can copy the Array class code from the figure, or, more conveniently, open the file named CodeForFig11-24.cpp in the folder provided with the Data Files for this book.) Create at least two programmer-defined classes that you can use with the container class. Write a main()function that demonstrates your container class works with at least two built-in types and two programmer-defined types. Save the file as ArrayContainer.cpp.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.