#C14311. Calculate Final Scores

    ID: 43947 Type: Default 1000ms 256MiB

Calculate Final Scores

Calculate Final Scores

You are given a CSV input via stdin that contains information about students. The input consists of a header line and subsequent rows where each row contains a student's name, grade, and extra credit points. The final score for a student is computed as follows:

\( final\ score = grade + extra\ credit \)

Your task is to compute and output each student's final score (rounded to two decimals) on a separate line in the format Name: final_score. After listing all the students, output a final line showing the class average in the format Class Average: average, where the average is also rounded to two decimals. If there are no student records (only the header is present), the class average should be output as 0.00.

inputFormat

The input is provided via stdin in CSV format. The first line is the header: Name,Grade,Extra Credit. Each subsequent line represents a student's record with the student name, grade (a floating-point number), and extra credit (a floating-point number), separated by commas.

outputFormat

For each student, output a line containing the student's name and final score formatted as Name: final_score (with the score rounded to two decimals). Finally, output one line showing the class average formatted as Class Average: average (rounded to two decimals). If no student records are present, output only the class average line.

## sample
Name,Grade,Extra Credit
Alice,85,5
Bob,78,10
Charlie,95,0
Alice: 90.00

Bob: 88.00 Charlie: 95.00 Class Average: 91.00

</p>