// Provided by:   ______________________
// Your Roll number: ____________________
// FILE: stats.cpp
// Implementation of the class statistician

#include "stats.h"
#include <assert.h>    // Provides assert

//
// CONSTRUCTOR for the statistician class:
//   statistician( );
//     Postcondition: The object has been initialized, and is ready to accept
//     a sequence of numbers. Various statistics will be calculated about the
//     sequence.
statistician::statistician()
{
    // Student will implement
}
//
// PUBLIC MODIFICATION member functions for the statistician class:

void statistician::next(double r)
//     The number r has been given to the statistician as the next number in
//     its sequence of numbers.
{
    // Student will implement
}
void statistician::reset( )
//     Postcondition: The statistician has been cleared, as if no numbers had
//     yet been given to it.
{
    // Student will implement
}
//   
// PUBLIC CONSTANT member functions for the statistician class:
int statistician::length( ) const
//     Postcondition: The return value is the length of the sequence that has
//     been given to the statistician (i.e., the number of times that the
//     next(r) function has been activated).
{
    // Student will implement
}
double statistician::sum( ) const
//     Postcondition: The return value is the sum of all the numbers in the
//     statistician's sequence.
{
    // Student will implement
}
double statistician::mean( ) const
//     Precondition: length( ) > 0
//     Postcondition: The return value is the arithmetic mean (i.e., the
//     average of all the numbers in the statistician's sequence).
{
    assert( count > 0 ); // leave this in. This enforces precondition

    // Student will implement
}
double statistician::minimum( ) const
//     Precondition: length( ) > 0
//     Postcondition: The return value is the tinyest number in the
//     statistician's sequence.
{
    assert( count > 0 );
    // Student will implement
}
double statistician::maximum( ) const
//     Precondition: length( ) > 0
//     Postcondition: The return value is the largest number in the
//     statistician's sequence.
{
    assert( count > 0 );
    // Student will implement
}
//
// NON-MEMBER functions for the statistician class:
statistician operator +(const statistician& s1, const statistician& s2)
//     Postcondition: The statistician that is returned contains all the
//     numbers of the sequences of s1 and s2.
{
    // Student will implement
}
statistician operator *(double scale, const statistician& s)
//     Postcondition: The statistician that is returned contains the same
//     numbers that s does, but each number has been multiplied by the
//     scale number.
{
    // Student will implement
}
bool operator ==(const statistician& s1, const statistician& s2)
//     Postcondition: The return value is true if s1 and s2 have the zero
//     length. Also, if the length is greater than zero, then s1 and s2 must
//     have the same length, the same  mean, the same minimum, 
//     the same maximum, and the same sum.

{
    // Student will implement
}

