Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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, 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started