#include using namespace std; // global constants const int MAX_STUDENTS=5, MAX_SUBJECTS=3; // helper functions void getInput(int array[MAX_STUDENTS][MAX_SUBJECTS]); void processArray(int array[MAX_STUDENTS][MAX_SUBJECTS]); void displayArray(const int array[MAX_STUDENTS][MAX_SUBJECTS]); void displayOdd(const int array[MAX_STUDENTS][MAX_SUBJECTS]); int main() { // initialise our array int marks[MAX_STUDENTS][MAX_SUBJECTS]={0}; // get the user to input the marks getInput(marks); // Lets see what we've got so far cout << "The Marks entered were: " << endl; displayArray(marks); // now lets process the array and see what we get processArray(marks); cout << "After processing the marks are:" << endl; displayArray(marks); // Now let's see the results for students with odd subscripts, but only for subjects with odd subscripts... cout << "Odd students odd subject results:" << endl; displayOdd(marks); return 0; } // Get the user to populate the array void getInput(int array[MAX_STUDENTS][MAX_SUBJECTS]) { for(int student=0;student> value; array[student][subject] = value; } cout << endl; } cout << endl; } // Multiply each mark by itself void processArray(int array[MAX_STUDENTS][MAX_SUBJECTS]) { for(int student=0;student