Question
Write a C++ program which will accept user input for grades of students for a course into a multidimensional array. For each student, the student
Write a C++ program which will accept user input for grades of students for a course into a multidimensional array. For each student, the student number and grade will be read and stored. When the input is finished, which happens when student number entered is 0, the program outputs the average grade of the class, together with the minimum and maximum grades. Your program must have the following structure: The input process and the insertion of the data into array must be performed in a separate function of its own. Moreover, three more separate functions must be used in the program as follows: One function must be used to calculate and return the class average; a second one to find and return the maximum and minimum grades of the class and finally, a third function must be used to display all the results: the average and the maximum and minimum grades.
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