Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

The students' ID's and test answers are stored in a file (dont worry about the file).

The History teacher needs help in grading a true/false test. The students' ID's and test answers are stored in a file (dont worry about the file). The first entry in the file contains answers to the test in this form.T F F T F F T T T T F F T F T F T F T FEvery other entry in the file is the students ID, followed by a blank, followed by the students responses.For example, the entryABC54301 T F T F T F T T T F T F T F F T T F Tindicates that the students ID is ABC54301 and the answer to question 1 is true, the question for number is false, and so on. The student did not answer question 9. The exam has 20 questions. Each correct answer is awarded two points, each wrong answer gets -1 and no answer gets 0 points.Write a program that processes the test data. The output should be the student's ID, followed by the answers, followed by the test score, and followed by the test grade. Assume the following grade scale: 90-100 A, 80-89.99 B, 70-79.99 C, 60-69.99 D, 50.99 -0 F. Finally show the number of students who took this test.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question