Question: CIS 22B: Homework 2B 2D Arrays This program calls a function that takes a table of quizzes and calculates and stores the average for each

 CIS 22B: Homework 2B 2D Arrays This program calls a functionthat takes a table of quizzes and calculates and stores the average

CIS 22B: Homework 2B 2D Arrays This program calls a function that takes a table of quizzes and calculates and stores the average for each student. Find and fix the errors. Run the program and save the output as a comment at the end of the program. NAME: #include using namespace std; const int STU = 5; const int QUIZZES = 10; void calcStuAvg(int table , int nstu, int nQuiz, double stuAvg() ); int main( void ) int stu = 4; // actual number of students int quizzes = 8; // a total of 8 quizzes int table [STU] [QUIZZES] = {10, {10, {10, {10, 8, 8, 8, 8, 9, 10, 9, 8, 9, 8, 9, 10, 4, 6, 9, 9, 7, 10, 9}, 8, 9, 103, 8, 8, 9}, 8, 10, 10), double stuAvg QUIZZES]; calcStuAvg tables , stu, quizzes, stuAvg. ); for (int i = 0; i

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!