Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started