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

Plz write codes in C If you finish this in class, you can show it to the instruc

ID: 3711550 • Letter: P

Question

Plz write codes in C

If you finish this in class, you can show it to the instructor or student assistant. In Class Code If you are unable to complete this during class, copy and paste your code and save it as a.c file which you can upload. To save your file, you can click the blue download button in onlinegdb.com Your file will be saved as main.c, you can rename it. o The array on the right shows the scores on 3 exams (columns) for 5 different students (rows) o Enter the scores in C as an array named examScores. o Using a loop, find the mean exam score for the third 90 8794 8883 90 91 92 95 7779 84 82 79 86 exam o Using a loop, find the mean that the second student scored on the three exams. o Print each of the averages as a well formatted output.

Explanation / Answer

#include <stdio.h>

int main()
{
int examScores[5][3];
int i,j;
double thirdMean = 0, secondMean = 0;
printf("Enter the scores: ");
for(i=0;i<5;i++) {
for(j=0;j<3;j++) {
scanf("%d", &examScores[i][j]);
}
}

for(j=0;j<5;j++) {
thirdMean=thirdMean + examScores[j][2];
}

for(j=0;j<3;j++) {
secondMean=secondMean + examScores[1][j];
}
printf("Mean exam score for the third exam: %.2f ",thirdMean);
printf("Mean that the second student scored: %.2f ",secondMean);
return 0;
}

Output:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote