create a file name studAnswers.txt as shown below. this file contain answer of 10 students for 10 objective question asked in a quiz. each line of the file contains a student's id followed by her/his answers for question 1 to 10
501 A C D C A B B C C D
502 A C D A A B A D C D
503 A C C A B B B C C D
504 A B D A B C B D C D
505 B C C A A B B D C B
506 A B D B A B C D C C
507 C B D B A C B D B D
508 A D D C A A B C C D
509 B C C A B B B D C D
510 B C D A A B B D C B
Write a program that opens the studAnswers.txt file for input. the program calculates the number of right answers of each student (in each line of the file) and the marks scored by the student for quiz. the the result are written to the output file name studResult.txt. (Assume that the answers for question 1-10 are A,C,D,A,A,B,B,D,C,D in sequence and the total marks for the quiz is 5%).
That is not a question. That is a homework assignment.
Please note that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.
We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.