I have a list of grades for 3 students, that lists 2 of their subjects, and their performances on 8 tests (4 per subject). So the array looks kinda like [student][subject][testgrades]. My code so far looks like this
float allgradeavg(float grades);
float allgradeavg(float grades)
int i,j, k, numberofgrades=0;
The above function is used to find the average of all scores. The second problem is finding the average grade for each subject (passing two dimensional arrays to the function) I have not yet made the function. How can I break down a three-dimensional array into a two dimensional ones, and which dimensions do I even use? I am very lost, any help is greatly appreciated.