Question: Please help! C++ problem! Select the best answer below: Write a function which accepts a vector of strings and returns the average of the lengths

Please help! C++ problem! Select the best answer below: Write a function which accepts a vector of strings and returns the average of the lengths of the strings.

a)double averageLength(const vector &V) { double average = 0; for(int i=0;i

b)

double averageLength(const vector &V) { double average = 0; for(int i=0;i

c) double averageLength(const vector &V) { double average = 0; for(int i=0;i

d)

double averageLength(const vector &V) { double average = 0; for(int i=0;i

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!