A multiple-choice examination consists of 20 questions. Eachquestion has five choices, labeled A, B, C, D and E. All data forthat exam is stored in a file exam.txt. The first line of datacontains the correct answers to the twenty questions in the first20 consecutive (one after the other) character positions.
For Example: BECDCBAADEBACBEDDBED
Each subsequent line in the file contains the answers for a singlecandidate. Data on a line consists of a candidate number (aninteger), then by one or more spaces, followed by the twentyanswers given by the candidate in the next 20 consecutive characterpositions. An X is used if a candidate did not answer a particularquestion. A sample line is as follows:
5555 BECDCXACCAEDCBEDDACB
There can be an unlimited number of candidates. A line containing a“candidate number†0 indicates the end of the data.
A student’s final score is calculated by adding up the pointsawarded for all the questions. Points for a question are awarded asfollows:
• Correct answer 4 points
• Wrong answer -1 point
• No answer 0 points
Write a C# program to process the data in the file exam.txt andgenerate a report that shows:
1. Each candidate number and their final score (the total pointsobtained by the candidate).
2. The total number of candidates.
3. The number of correct responses to each of the 20questions.
4. The minimum score attained by a student in the exam.
5. The maximum score attained by a student in the exam.
6. The average score attained by a student in the exam.
The report must be written to a file called Report.txt.