Subject Object oriented programming DO task in C++ Start with the safearay class from the ARROVER3 program in Chapter 8 of Object Orient programming by Rober Lafore. Make this class into a template, so the safe array can store any kind of data. Include following member functions in Safe array class. The minimum function finds the minimum value in array. The maximum function find the maximum value in array. The average function find average of all the elements of an array. The total function finds the running total of all elements of an array. In main(), create safe arrays of at least two different types int and double and store some data in them. Then display minimum, maximum, average and total of array elements. Note: use subscript ([]) operator in sasfearay class.
Subject Object oriented
DO task in C++
Start with the safearay class from the ARROVER3 program in Chapter 8 of Object Orient programming by Rober Lafore. Make this class into a template, so the safe array can store any kind of data.
Include following member functions in Safe array class.
The minimum function finds the minimum value in array.
The maximum function find the maximum value in array.
The average function find average of all the elements of an array.
The total function finds the running total of all elements of an array.
In main(), create safe arrays of at least two different types int and double and store some data in them. Then display minimum, maximum, average and total of array elements.
Note: use subscript ([]) operator in sasfearay class.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps