#C13678. Student Records Processing
Student Records Processing
Student Records Processing
You are given a CSV formatted set of student records via standard input along with a grade threshold. Each record contains a student ID, name, age, and grades in Math, Science, and English. The CSV data includes a header row.
Your task is to store these records in a SQLite database, compute the average grade for each student using the formula \[ \text{avg\_grade} = \frac{\text{Math} + \text{Science} + \text{English}}{3} \] , and then output the names of the students whose average grade is strictly greater than the provided threshold. All input is from stdin and the output should be printed to stdout.
inputFormat
The input begins with an integer N representing the total number of lines in the CSV data (including the header row). The next N lines contain the CSV data. The final line contains a number representing the grade threshold.
For example:
6 StudentID,Name,Age,Math,Science,English 1,Alice,14,85,90,88 2,Bob,15,70,85,78 3,Charlie,14,92,88,94 4,David,16,60,75,64 5,Eve,15,88,92,89 80
outputFormat
Output the names of the students whose average grade is strictly greater than the given threshold. Each name should be printed on a separate line. If no student meets the criteria, do not output anything.
## sample6
StudentID,Name,Age,Math,Science,English
1,Alice,14,85,90,88
2,Bob,15,70,85,78
3,Charlie,14,92,88,94
4,David,16,60,75,64
5,Eve,15,88,92,89
80
Alice
Charlie
Eve
</p>