Question: C++ create a program that prompts the user to input the test answers file (test-solution.txt) and the students test answers are stored in a file

C++

create a program that prompts the user to input the test answers file (test-solution.txt) and the students test answers are stored in a file (students-answers.txt).

The test-solution.txt contains answers to the test in the form.

For example:

TTFTFTTTFTFTFFTTFTTF

The students-answers.txt contains the students' answers to the test.

The default file is "test-solution.txt" if one is not provided. Similarly, the default file is "students-answers.txt" if one is not provided.

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

ABC54301 TFTFTFTT TFTFTFFTTFT

indicates that the student ID is ABC54301 and the answers 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 has more than 40 students. Each correct answer is awarded 1 point, each wrong answer gets one point deducted, and no answer gets zero points.

Your program processes the test data. The output should be the students ID, followed by the answers, followed by the test score, followed by the test grade. Assume the following grade scale:

A = 90%-100%

B = 80%-89%

C = 70%-79%

D = 60%-69%

F = 0%-59%

.

it should include options for these

Enter the solution file (test-solution.txt):

Enter the students' answers file (students-answers.txt

Perform the students' answers and show the output

this is the input for FIRST first text file (test-solution.txt)

TTFTFTTTFTFTFFTTFTTF

this is the input for the SECOND textfile (students-answers.txt)

ABC54102 T FTFTFTTTFTTFTTF TF

DEF56278 TTFTFTTTFTFTFFTTFTTF

ABC42366 TTFTFTTTFTFTFFTTF

ABC42586 TTTTFTTT TFTFFFTF

please follow the instructions and use TWO input files, the program should compare these files to grade the student's work.

C++ create a program that prompts the user to input the testThe output should look like this. please make sure to have the output display the grade and info for all 4 students.

Processing Data Key: TTFTFTTTFTFTFFTTFTTF ABC54102 T FTFTFTTTFTTFTTF IF 27 DEF56278 TTFTFTTTFTFTFFTTFTTF ABC42366 TTFTFTTTFTFTFFTTF 34 ABC42586 TTTTFTTT TFTFFFTF 26 D A B 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!