Question: 2. void majorstatistics (int n[][2], const int rows, const int cols, int m[], const int size) This function receives a 2D array of integers (n),

 2. void majorstatistics (int n[][2], const int rows, const int cols,

2. void majorstatistics (int n[][2], const int rows, const int cols, int m[], const int size) This function receives a 2D array of integers (n), number of its rows (rows) which represents the number of majors, number of its columns (cols), which represents male and female students, a 1D integer array (m), and its size (size). Each value in array (n) represents the number of students in each major, which could be between 50 and 200 . It doesn't return anything but save the following values in the 1D array (m) by modifying its values: a. The minimum number of male students in all majors (e.g, 73). b. The ID of the major that has the same number of male and female students (if there is no one then save (1) and if there are more than one then save anyone) (eg, 1 which is the ID of Activity1) c. The total number of female students in all majors (eg,373)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!