Answer:
class Rainfall {
public:
// Constructor
Rainfall();
// Accessor functions
double getTotal() const;
double getAverage() const;
double getMonthlyTotal(int month) const;
double getMostRainfall() const;
double getLeastRainfall() const;
void print() const;
// Mutator functions
void setMonthlyTotal(int month, double rainfall);
private:
static const int MONTHS_IN_YEAR = 12;
double monthlyRainfall[MONTHS_IN_YEAR];
};