Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions