Question: Write a program called Grader_LastNameFirstName.cpp that processes the True/False data from a file called testinformation.txt. The students IDs and test answers are stored in a

Write a program called Grader_LastNameFirstName.cpp that processes the True/False data from a file called testinformation.txt.

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:

TFFTFFTTTTFFTFTFTFTT

Every other entry in the file is the student ID, followed by a blank, followed by the students responses. For example, the entry:

ABC54301 TFTFTFTT TFTFTFFTTFT

indicates that the student ID is ABC54301 and the answer to question 1 is

True, the answer to question 2 is False, and so on. This student did not answer question 9. The e x a m has 20 questions, and the class could have up to 150 students. This class only had 4 students. Each student has a different student ID and no student ID can appear more than one time. Hint Hint If it appears more than once; only takes the first entry.

Each correct answer is awarded two points, each wrong answer gets one point deducted, and no answer gets zero points.

The output should be the students ID, followed by the answers, followed by the test score, followed by the test grade as show below:

Write a program called Grader_LastNameFirstName.cpp that processes the True/False data from a

Assume the following grade scale:

90%100%, A;

80%89.99%, B;

70%79.99%, C;

60%69.99%, D;

0%59.99%, F.

Write the output to the screen and output the results for the class to a text file called Grades_lastnamefirstname.txt. Also output each of the students results in a separate file with their student ID and your lastnameFirstname.txt For example, for the above output, your program would have 5 output files.

Grades_lastnamefirstname.txt (contains everyone grades) as Grades_RogersGregory.txt

ABC54102_lastnamefirstname.txt as ABC54102_RogersGregory.txt

DEF56278_lastnamefirstname.txt as DEF56278_RogersGregory.txt

ABC42366_lastnamefirstname.txt as ABC42366_RogersGregory.txt

ABC42586_lastnamefirstname.txt as ABC42586_RogersGregory.txt

Processing Data Key TTFTFTTTFTFTFFTTFTTF ABC54102 T FTFTFTTTFTTFTTF TF 27 D DEF56278 TTFTFTTTFTFTFFTTFTTF 40 A ABC42366 TTFTFTTTFTFTFFTTF ABC42586 TTTTFTTTTFTFFFTF 34 B 26 D

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!