The Ministry of Energy and Water in Lebanon is in the process of collecting the rain precipitation that was recorded in the year 2021. You were assigned the task of analyzing those results by creating...


The Ministry of Energy and Water in Lebanon is in the process of collecting the rain precipitation that was recorded in the year 2021.


You were assigned the task of analyzing those results by creating a one dimensional array of 12 elements corresponding to the months of the year.


Each cell of the array holds the amount of rain precipitation received during a certain month of the year.


Write a C++ program, using functions, to perform the following:





  1. Fillthe array with the amount received for each month of the year.





  2. Computeand display the average of rain precipitation during the year.





  3. Searchthe array and print the lowest and the highest amount of rain during the year, together with the corresponding months.




    4.Sortthe array from the highest amount of rain to the lowest and output the results according to the months.



Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here