Question: Write a C + + program that takes as inputs from a teacher, the names of her / his students along with the grade of

Write a C++ program that takes as inputs from a teacher, the names of her/his students along with the grade of each student in an exam. Define a struct with two fields: Name and Grade. In your program, the main function creates an array of this struct to store the students' data. All grades are integers that have to be in the range from 0 to 100(inclusive). Assume no two grades have the same value and there are at least five students in the class. At the beginning, you will need to ask the teacher for the size of the class (the number of students). The program will display (as its outputs) the following as shown in Figure Q.4:
The average of the students' grades.
The name and grade of the students
Each one of the above outputs must be implemented in a separate function where the array is passed to these functions as a parameter
\table[[\table[[Enter no of students],[Enter student name],[Enter student grade],[Enter student name],[Enter student grade],[Enter student name],[Enter student grade],[Enter student name],[Enter student grade],[Enter student name],[Enter student grade],[Name],[Mark],[Jack],[John],[Tailor],[Hanna],[Average],[Maximum grade is obtained by],[Minimum arade is obtained bv]],\table[[:,5],[:,Hanna],[:,20],[:,Jack],[:,60],[:,Tailor],[:,30],[:,Mark],[:,90],[:,John],[:,55],[,Grade],[:,90],[:,60],[vdots,55],[:,30],[:,20],[:,51],[Mark,],[Hanna,]]]]
Figure Q.4
 Write a C++ program that takes as inputs from a teacher,

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!