calculate grades
Description:
You have just completed one semester of working as a Computer Science TA for the Winter 2003 semester. Throughout the past year you have been marking assignments and quizzes. It is now time to complete your grading and submit the final marking sheet to your supervising professor. You have your assignment marks calculated and ready to submit; however, you still have a bunch of quiz grades that need to be marked and calculated.
The quizzes you are for multiple choice test and are in the form of:
TTFTFTTTFF Tino Duong
FTTFTFTTFT John Smith
FTFTFTTTFF Ted Jones
FTTFTTTTTT Jen Wilkins
TTFFTFFTTT Thom York
TTFTFTTTFF
Where each row contains the first and last name, preceded by the answers students answers to the quiz. The very last line is the answer key.
Your job is to write a program that will take a text file in this format and process it to give you final grades.
Requirements:
./a.out <input file>
-Where a.out is the executable
- input file, is the name of the file to be processed
For each file that is marked.
Your output file may look similar to this:
Personal Scores:
----------------
Tino Duong
Score: 100.000%
John Smith
Score: 40.000%
Ted Jones
Score: 90.000%
Jen Wilkins
Score: 40.000%
Tom York
Score: 40.000%
.
.
.
.
Class Statics:
----------------
Class size: 17
Class Average: 53.529%
Question Statics:
----------------
(number indicates the percentage of the
class that got the question correct)
Question 1: 100.000%
Question 2: 130.000%
Question 3: 80.000%
Question 4: 60.000%
Question 5: 90.000%
Question 6: 100.000%
Question 7: 90.000%
.
.
.
Additional/Optional Requirements:
Concepts:
Updated: