Question: Need help with this class that returns statistics on a sequence of value. C++ language ssion ere is a description of the class that you
ssion ere is a description of the class that you must design 1. The class must have a method that allows a single floating-point value to be entered into the data set. This data entry method must take a single argument of type double, which represents one value in the sequence, and add this value to the data stored in the class Since the user may enter any number of values into the sequence of values that statistics will be generated over, this method can be called any number (ie an unknowable number) of times After the class has received a sequence of values (using repeated calls to the method above), the class must supply methods that will generate the following statistic over that data sequence 2. Find N the number of values in the sequence 3 Find the value of the last number in the sequence 4 Find the sum of all of the values in the sequence 1 5 Find the arithmetic mean of all of the values in the sequence. The arithmetic mean is given by mean =--N 6 Find the minimum (smallest) value in the sequence 7 Find the maximum (largest) value in the sequence 8 Clear the sequence so that statistics can be calculated on a now sequence of
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
