Please Solve the Question in C++ as quickly as you can in 40 minutes . And do the same as asked in the question. Don't use extra things , please. Q1: Start with the safearay class from the ARROVER3...


Please Solve theQuestion in C++as quickly as you can in40 minutes. And do the same as asked in the question.Don't use extra things, please.


Q1:


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.



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here