#C13170. Student Scores Processing

    ID: 42679 Type: Default 1000ms 256MiB

Student Scores Processing

Student Scores Processing

Problem Statement: Given a list of student records, each record is provided on a new line in the format (Name:Score). Your task is to compute the average of all scores and then determine whether each student has passed or failed. A student is considered to have passed if their score is at least (50); otherwise, they fail. The output must first display the average score in the form "Average Score: " and then list each student's record on a new line in the format (Name:Score:Status), where (Status) is either "Pass" or "Fail". Ensure that you read input from standard input (stdin) and write the output to standard output (stdout).

inputFormat

Input is provided via standard input (stdin). Each non-empty line contains a student's record in the format (Name:Score). There is no indicator of the number of records; input ends at EOF.

outputFormat

Output must be printed to standard output (stdout). The first line contains the average score in the format: "Average Score: ". The following lines list the student records, each in the format (Name:Score:Status), where a student passes if the score is at least (50) and fails otherwise.## sample

John Doe:75
Jane Smith:40
Emily Jones:82
Average Score: 65.66666666666667

John Doe:75:Pass Jane Smith:40:Fail Emily Jones:82:Pass

</p>