#P5742. Student Excellence Evaluation

    ID: 18970 Type: Default 1000ms 256MiB

Student Excellence Evaluation

Student Excellence Evaluation

You are given $N$ students. For each student, you need to design a structure to record the following information: the student ID, the academic score, the extracurricular score, and the composite score (a real number). For each student, read the student ID, academic score, and extracurricular score from input, then compute the composite score using the formula: $$ composite = a \times 0.7 + b \times 0.3 $$, where a is the academic score and b is the extracurricular score. Note that to avoid precision issues, compare \(a \times 7 + b \times 3\) with 800 instead of comparing \(a \times 0.7 + b \times 0.3\) with 80.

Inside the structure, also define a member function that returns the total score, i.e. the sum of the academic score and the extracurricular score.

Furthermore, design a function whose parameter is a student structure object to determine whether the student is "excellent." A student is considered excellent if:

  • The sum of the academic and extracurricular scores is greater than 140.
  • The composite score is not less than 80 (using the scaled comparison \(a \times 7 + b \times 3 \ge 800\)).

This problem is intended to help you practice working with structures.

inputFormat

The first line contains an integer $N$, the number of students.

Each of the following $N$ lines contains three numbers: the student ID (an integer), the academic score (a number), and the extracurricular score (a number), separated by spaces.

outputFormat

For each student, output a single line containing either "Excellent" if the student meets the criteria, or "Not Excellent" otherwise.

sample

2
101 90 60
102 80 55
Excellent

Not Excellent

</p>