### group project exercise 3 modify the code below to use arrays and loops to manipulate 5151753

GROUP PROJECT EXERCISE 3

Modify the code below to use arrays and loops to manipulate the arrays when needed.

/* This program allows the input and display of grades of a course with 4 quizzes, 2 midterms, and a final.

Written by: Date: */

include int main (void)

{ // Local Declarations int quiz1;

int quiz2;

int quiz3;

int quiz4; int

totalQuiz;

int midterm1;

int midterm2;

int totalMidterm;

int final;

// Statements

printf(“=========== QUIZZES =================n”);

printf(“Enter the score for the first quiz: “);

scanf(“%d”, &quiz1);

printf(“Enter the score for the second quiz: “);

scanf(“%d”, &quiz2);

printf(“Enter the score for the third quiz: “);

scanf(“%d”, &quiz3);

printf(“Enter the score for the fourth quiz: “);

scanf(“%d”, &quiz4);

printf(“============= MIDTERM =============n”);

printf(“Enter the score for the first midterm: “);

scanf(“%d”, &midterm1);

printf(“Enter the score for the second midterm: “);

scanf(“%d”, &midterm2);

printf(“=============== FINAL ==============n”);

printf(“Enter the score for the final: “);

scanf(“%d”, &final);

printf(“n”);

totalQuiz = quiz1 + quiz2 + quiz3 + quiz4;

totalMidterm = midterm1 + midterm2;

printf(“First Quiz %4dn”, quiz1);

printf(“Second Quiz %4dn”, quiz2);

printf(“Third Quiz %4dn”, quiz3);

printf(“Fourth Quiz %4dn”, quiz4);

printf(“Quiz Total %4dnn”, totalQuiz);

printf(“First Midterm %4dn”, midterm1);

printf(“Second Midterm %4dn”, midterm2);

printf(“Total Midterms %4dnn”, totalMidterm);

printf(“Final %4dnn”, final); return 0; }