Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Database Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions

Question

What is book value?

Answered: 1 week ago

Question

What is meant by 'Wealth Maximization ' ?

Answered: 1 week ago