I have this assignment that I really need help on. The assignment is as follows:
"The final exam in a class consists of 30 multiple choice questions.
INPUT-The first data line contains the key to the exam. The correct answers are the first 30 characters; they are followed by an integer number that says how many students took the exam (call it n). The next n lines contain student answers in the first 30 character positions, followed by the student name in the next 10 character positions.
OUTPUT-For each -the student's name; followed by the number of correct answers; followed by PASS if the number correct is 60 percent or better, or FAIL otherwise."
I looked through the textbook and it didn't help. Could anyone help me out on how I write this program. Thanks.
