Question: Write function double find average that takes a vector of integers as a parameter and returns the average of the elements of the vector (total

 Write function double find average that takes a vector of integers

Write function double find average that takes a vector of integers as a parameter and returns the average of the elements of the vector (total sum divided by total number of elements in the vector). #include using namespace std; double find average(){//find max int main(){int SIZE = 3; vector star = {113, 10, 14}: double average = find average (star, SIZE); cout average endl;}//main

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!