Question: ****** C++ code ONLY**** Given this struct: Select the best answer below: struct quizzes int Q1; int Q2; int Q3; double Average; Choose the best

****** C++ code ONLY****

Given this struct:

****** C++ code ONLY**** Given this struct: Select the best answer below:struct quizzes int Q1; int Q2; int Q3; double Average; Choose the

Select the best answer below:

best answer to accomplish this task:write a function which accepts a vectorof structs and puts the average of the three quizzes in the

struct quizzes int Q1; int Q2; int Q3; double Average; Choose the best answer to accomplish this task:write a function which accepts a vector of structs and puts the average of the three quizzes in the Average field for each struct in the vector. O void averageQuiz(vector &V) int count 0; for(int i 0:i Vsize0:i++) V[i]Average = (V[i].Q1 +ViIQ2 + VIi].Q3)/ 3.0; void averageQuiz(vector &V) int count 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!