C++ CodeLab>112xx1121xExercise: 112140 WorkArea Instructions Write a function double average(int arrI, int n), that returns the average of the even elements of the array. If the array has no even elements, throw an integer-based exception containing the value 0. The number of elements in the array is specified by the parameter n 幸Submit History: X (1 of 1) 04/23/19 06:03:36 Show transcribed image text C++ CodeLab>112xx1121xExercise: 112140 WorkArea Instructions Write a function double average(int arrI, int n), that returns the average
OR
OR