Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need help with my c programming assignment. Write a C program that declares a 2D array of integer grades using: #define MAX STUDENTS #define

i need help with my c programming assignment.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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 grade1 grade2 grade3 gradel grade2 grade3 grade-n // for student 1 grade-n // for student 2 grade-n // for student 3 grade1 grade2 grade3 grade-n // 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 input.txt. 2. Reads grades from a text file named input.txt and stores them in the 2D array gradesArray ] 1 3. Displays grades, average of grades, minimum grade, and maximum grade of each 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. 3-23 PM

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

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

More Books

Students also viewed these Databases questions

Question

Explain the nature of human resource management.

Answered: 1 week ago

Question

Write a note on Quality circles.

Answered: 1 week ago

Question

Describe how to measure the quality of work life.

Answered: 1 week ago

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago

Question

9. Power and politics can be destructive forces in organizations.

Answered: 1 week ago