Implement the statistician class. The class definition is givenin stats.h. You will write a stats.cpp file, which will have theimplementations of all the statistician’s member functions. Usestatexam.cpp to test the correctness of your statisticianclass.
stats.h file:
#ifndef stats.h
#define stats.h
//a class to keep track of statistics on a sequence of realnumbers
class statistician
{
public:
// CONSTRUCTOR
// Postcondition: The object has been initialized, and is ready toaccept
// a sequence of numbers. Various statistics will be calculated aboutthe
// sequence.
statistician();
// MODIFICATION MEMBERFUNCTIONS
// Postcondition: The number r has been given to the statistician asthe next number in
// its sequence of numbers.
void next(double r);
// Postcondition: The statistician
PayPal Gateway not configured
PayPal Gateway not configured