Question
LEGIBLY Complete the follow ng parlial c++ program fining in code where needed to produce a workirg program. Three equally w tests are ndministered wo reur students in acs 428 class. The read from mpat file and stored in 2D real te The student IDs are array in a ID an console along with the highest average Declare variables or named cons meatness program output will be graded for correctness as well as one decimal place. #include einclude einelude ciomaniku- ace std arking namexpa global named constants ens Declare a named constant STUDENTs to represent the of students (row HDeclare a named constant TESTs to represent the of tests, col 2D array (exam scores) column indices const int TSTI 0, TST II 1, FINAL 2; the prototypes for functions getData and calcAvg below, When passing array data to a function, remember to protect the data from change when possible. C tes 3 of 5
Explanation / Answer
const int STUDENTS = 4;
const int TESTS = 3;
void getData()
void calcAvg()
char student_id[STUDENTS][MAX_LENGTH]={'A','0','1','2','3','4','5','6','7'},
{ 'A','1','2','3','4','5','6','7','8'},
{ 'A','2','3','4','5','6','7','8','9'},
{ 'A','3','4','5','6','7','8','9','0'}};
int test_grades[STUDENTS][TESTS];
float average[STUDENTS];