Well, obviously it's your assignment, and you're presumably able to do this to some extent (otherwise you went into the wrong classroom

), so we can't be of too much help. But here are a few suggestions:

1. Break the task down into smaller steps. Then you can only be stumped on 'the next step', rather than the whole thing.

2. Learn the basics of Mathematica. So visit YouTube, or www.wolfram.com/broadcast and watch a few videos. Read the Virtual Book in the Mathematica help or some of the tutorials.

3. Find out how to import files. Seaching for 'import' will bear much fruit. You have to know the file format of the files "student" and "correct" - tab-separated, comma-separated, or what? You could probably import the names and scores into a table - a list of lists.

4. A basic skill in Mathematica is to chop and slice lists. Use double brackets (aka Part) for list access. You can get columns from tables too.

5. Write a function that takes two lists, one containing a student's scores, the other containing the answers. Find out how to compare two lists. This might involve...

6. Finding out how to map a function over one or more lists. This could be useful for comparing the values and storing some results. MapThread is cool...

7. Comparing a student's answer against the real answer is easy if the answers are numbers. Multiple choice is OK too. Otherwise you'll have to know about comparing strings...

8. The Count function can count values in lists. If the Count of correct answers is greater than or equal to 7, the student passes.

It's not a lot of code (about 10-20 lines?) but if you haven't learnt the basics of the language, it might be quite challenging until you have.