Redo Programming Exercise 6 of Chapter 8 using dynamic arrays.
REFERENCE:
The history teacher at your school needs help in grading a True/False test. The students’ IDs and test answers are stored in a file. The first entry in the file contains answers to the test in the form:
Every other entry in the file is the student ID, followed by a blank, followed by the student’s responses. For example, the entry:
indicates that the student ID is
and the answer to question 1 is True, the answer toquestion2isFalse, and soon. This student did not answer question 9. The exam has 20 questions, and the class hasmore than 150 students. Each correct answer is awarded two points, each wrong answer gets one point deducted, and no answer gets zero 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, followed by the test grade. Assume the following grade scale:
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.