Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

The Ministry of Energy and Water in a country 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 (if no function usage you will loose 25% of the grade) , to perform the following:

Fill the array with the amount received for each month of the year.

Compute and display the average of rain precipitation during the year.

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

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Did you cite the sources of the statistics?

Answered: 1 week ago