Answered step by step
Verified Expert Solution
Link Copied!

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),

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions