question archive The input file is named input
Subject:Computer SciencePrice: Bought3
The input file is named input.txt and contains a list of students’ info and their test scores. Each line starts with a student name, followed by id, gender, and test scores which are separated by a comma.Requirement(s): After reading the input file and processing the information, output the students’ records andthe class statistics into the output file as described in the following section. Output file:The output file must be named “output.txt” to contain the following information sorted in descending alphabetical order. Add an extra blank line between two records of students:1)Students’ records containing: •Id •Full name•Average Score2)Class statistics (print the following information at the bottom of the output file): •Total number of students•Total number of male students•Total number of female students
•The class average score •The females’ average score•The males’ average score•The highest average score•The lowest average scoreHere is an example of the output file (output.txt): .................................................................................ID: 110 Full name: Adam GabrielAverage score: 76.00... Total number of students: 7Total number of male students: 5Total number of female students: 2The class average score: ... The females’ average score: ... The males’ average score: ... The highest average score: ... The lowest average score: ... .................................................................................Use the input file to test your program only. Do not add the content of the input file into your Python script. I am going to use a different input file with a different number of students to test your program