Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Three Dimensional Arrays
11-07-2013, 10:09 PM #1
- Join Date
- Nov 2013
- Thanked 0 Times in 0 Posts
Three Dimensional Arrays
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.