Question: Please write it in C++ Please use the main function provided: // Chapter 8 - Programming Challenge 12, Stats Class and Rainfall Statistics // This
Please write it in C++

Please use the main function provided:
// Chapter 8 - Programming Challenge 12, Stats Class and Rainfall Statistics // This program revises Programming Challenge 8 to create and use a Stats class // that contains general statistical functions. It will use it to store monthly // rainfall data and to report rainfall statistics. The Stats class is defined // in this same file as the client program that uses it. You may wish to have // students use a separate file for the Stats class. #include #include #include using namespace std; // ************** Place class declarations and implementation here ****************** //*************************** user program ***************************** // Function prototype void storeData(Stats &); void rainReport(const Stats &); const int NUM_MONTHS = 12; // The number of months of data // being input and analyzed const string monthName[] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November ", "December "}; int main() { Stats rainfall; // Create an instance of the Stats class // to store and manage the rainfall data storeData(rainfall); rainReport(rainfall); return 0; } /*************************************************************** * storeData * * Accepts inputs and sends them to the Stats object to store. * ***************************************************************/ void storeData(Stats &rainfall) { double rain; for (int month = 0; month > rain; while (rain > rain; } // Send it to the Stats object to store rainfall.storeValue(rain); } } /************************************************************* * rainReport * * Displays a report of rainfall statistics. * *************************************************************/ void rainReport(const Stats &rainfall) { // Print a report heading cout Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
