Question: Write a C program that declares a 2D array of integer grades using: #define MAX_STUDENTS #define MAX_EXAMS Write a C program that declares a 2D

Write a C program that declares a 2D array of integer grades using:

#define MAX_STUDENTS

#define MAX_EXAMSWrite a C program that declares a 2D array of integer gradesusing: #define MAX_STUDENTS #define MAX_EXAMS Write a C program that declares a2D array of integer grades using: #define MAX STUDENTS #define MAX EXAMSint gradesArray[MAX_STUDENTS] [MAX_EXAMS] where MAX_STUDENTS is the maximum number of students andMAX_EXAMS is the maximum number of exams. The array has to be

Write a C program that declares a 2D array of integer grades using: #define MAX STUDENTS #define MAX EXAMS int gradesArray[MAX_STUDENTS] [MAX_EXAMS] where MAX_STUDENTS is the maximum number of students and MAX_EXAMS is the maximum number of exams. The array has to be initialized with grades from a text file. The format of the file is as follows: gradel grade2 grade3 -.. grade-n 11/ for student 1 grade1 grade2 grade3 grade-n / for student 2 gradel grade2 grade3 -.. grade-n II for student 3 gradel grade2 grade3 -.. grade-n I/ for student m A sample set of grades is given in Figure 1 Tasks: The program should perform the following tasks: 1. Finds the number of students and exams by reading text file of grades named 2. Reads grades from a text file named input.txt and stores them in the 2D array 3. Displays grades, average of grades, minimum grade, and maximum grade of each input.txt. gradesArray student in a well-formatted table Find and display the minimum grade and maximum grade of all students. Display bar chart that represents the grade distribution of all grades. 4. 5

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!