Question: please help me fix my code the average is right except it only needs 2 decimal places to the right ok every number. Output differs

please help me fix my code the average is right except it only needs 2 decimal places to the right ok every number.

please help me fix my code the average is right except it

only needs 2 decimal places to the right ok every number. Output

differs See highlights below. Special character legend Input 78 80 85 91

100 87 66 68 75 57 55 33 71 70 78 Student

Output differs See highlights below. Special character legend Input 78 80 85 91 100 87 66 68 75 57 55 33 71 70 78 Student Name Exam 1 Exam 2 Exam 3 Average GPA 78 e B Your output Amanda Baynes Victor Hughes Scott Collins Lori Macbeth Manny Lopez 91 66 80 100 68 55 70 85 87 75 81 92.6667 69.6667 48.3333 A D 57 33 71 78 73 Student Name Exam 1 Exam 2 Exam 3 Average GPA - - - - - -- - - - - - - 1 B 78 91 80 100 Expected output 8 A Amanda Baynes Victor Hughes Scott Collins Lori Macbeth Manny Lopez 66 68 85 87 75 33 78 81.00 92.67 69.67 48.33 73.00 57 55 70 71 C CIS O TT 5 // Preprocessor directives 6 #include 7 #include 9 #include 1e #define NUM STUDENTS 5 11 #define NUM GRADES 3 12 using namespace std; 13 int main 15 string studentName[] = { "Amanda Baynes", "Victor Hughes","Scott Collins", "Lori Macbeth", "Manny Lopez' }; int studentGrade [NUM_STUDENTS][NUM_GRADES]; double numericAverage [NUM_STUDENTS]; 18 char gpa[NUM_STUDENTS]; 19 int sum = e; for (int i = 0;i > studentGrade[i][j]; 26 for (int i = 0; i = 90) gpa[1] = 'A's else if (numericAverage[i] >= 80) gpa[1] = 'B': else if (numericaverage[i] >= 70) gpa[1] = "C" else if (numericAverage[1] >=60) epa[1] = 'D's else gpa[1] = 'F'S 43 46 printf("%-155 este sin", "Student Name", "Exam 1", "Exam 2", "Exam B "Average", "GPAD printf(" ") for (int i = 0; i > studentGrade 11 l

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!