Write a C++ program that inputs the number of students in a class and the number of tests and the grades of the tests conducted by each student, then it calculates the average of the student and outputs related information as given below. The Average of a student is calculated considering the grades the student obtained in her/his tests divided by the number of tests the student conducted. A student should at least attend two out of the three tests of the course. For every student in the class the program should output, Student Name, student ID, Number of conducted Tests by the student, grades of conducted tests, average of conducted tests, and a message as shown in the below table depending on the calculated average of the student. In addition, the program should calculate and output the average of the whole class.
Average Grade Message to output between 90 and less than or equals 100 Excellent Between 80 and less than 90 Good Between 70 and less than 80 oK Between 60 and less than 70 Weak Less than 60 Fail