Question: In this exercise you're going to write a computeExamAvgs function that given an array of Student, computes the exam average for each student by updating

 In this exercise you're going to write a computeExamAvgs function that

In this exercise you're going to write a computeExamAvgs function that given an array of Student, computes the exam average for each student by updating the ExamAvg field for each student. Here's the struct definition you are working with: struct Student { int UIN; int Midterml; int Midterm2; int Final; double ExamAvg; }; Your function will loop through the array of students, and compute each exam average based on the 3 exam scores. The main() program and struct are written for you, your assignment is to write the computeExamAvgs function in "util.cpp" to perform the average computations. [ Select "util.cpp" from the drop-down list above the coding window. If the window is blank, click "Load default template" to obtain the starter code.]

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!