(solution) Write a C++ program that calculates the following for an Array of

(solution) Write a C++ program that calculates the following for an Array of

Write a C++ program that calculates the following for an Array of Grades listed below:

  • Average Value
  • Maximum grade
  • Minimum grade
  • Median
  • Mode

Grades

4.5

6

7

7.5

4.5

6

3

4

6.5

5.5

5.5

6

5

5

4

5

6

4.5

  • Standard Deviation
  • The frequency of grades for the following ranges
    • 0 to < 1
    • 1 to < 2
    • 2 to < 3
    • 3 to < 4
    • 4 to < 5
    • 5 to < 6
    • >6

Your Program should be modular, meaning that you should write a function for each parameter listed above.

put explanation in each phase and especially in phase of function, please leave explanation comments (by using //) for each function. Thanks

#define SIZE 18
#include&lt;stdio.h&gt;
#include &lt;iostream&gt;
using namespace std;
float average_function(float,int);
float median_function(float,int);
float mode_function(float,int);
float…