Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem 7 (16 Assume typede struct is defined as follows: points): complete the

ID: 3751775 • Letter: P

Question

Problem 7 (16 Assume typede struct is defined as follows: points): complete the code e play struct player char name: int score: player: Complete the function calc agv score to ch player's name to stdout, each on its own line the average of all scores for all player structs in arr prints ea playerst1 Gooty", 801"Minnie", 4001("Mickey", 201, "Pluto", 6 average_score -find avg score (players,4) For example, if the following code is executed: Then, the following is printed: Goofy Minnie Mickey Pluto and average_score would be assigned to 126.5. // arr is an array of player structs // len is the length of arr double calc_avg_score (player arr, int len) if (len

Explanation / Answer

double calc_avg_score(player *arr, int len) { if(len