Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 herhis 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 to 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:
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
tabletableEnter no of studentsEnter student nameEnter student gradeEnter student nameEnter student gradeEnter student nameEnter student gradeEnter student nameEnter student gradeEnter student nameEnter student gradeNameMarkJackJohnTailorHannaAverageMaximum grade is obtained byMinimum arade is obtained bvtable::Hanna::Jack::Tailor::Mark::John:Grade:::::MarkHanna
Figure Q
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