Question: IN C++ Write a menu-driven program that prompts the user to input the test answers file (test-solution.txt) (TTFTFTTTFTFTFFTTFTTF) and the students test answers are stored
IN C++ Write a menu-driven program that prompts the user to input the test answers file (test-solution.txt) (TTFTFTTTFTFTFFTTFTTF) and the students test answers are stored in a file (students-tests.txt) (ABC54102 T FTFTFTTTFTTFTTF, TFDEF56278 TTFTFTTTFTFTFFTTFTTF, ABC42366 TTFTFTTTFTFTFFTTF, ABC42586 TTTTFTTT TFTFFFTF)
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 test 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%
Hints:
#include #include #include #include
Use function from "iomanip" to format the output.
Menu
1) Enter the solution file (default test-solution.txt): _________
2) Enter the students' answers file (default students-answers.txt): __________
3) Perform the students' answers and show the output
x) Exit the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
