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:
Fillthe array with the amount received for each month of the year.
Computeand display the average of rain precipitation during the year.
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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here