Question: In C++ Read contents of CorrectAnswers.txt file into char array: correctAnswers Read contents of StudentAnswers.txt file into char array: studentAnswers Compare correctAnswers with studentAnswers Display
Read contents of CorrectAnswers.txt file into char array: correctAnswers Read contents of StudentAnswers.txt file into char array: studentAnswers Compare correctAnswers with studentAnswers Display incorrect student answers with correct answer for each missed question Display total number of questions missed Display percentage of questions answered correctly (correctAnswers totalQuestions) Display pass or fail if percentage of questions answered correctly is greater or equal than 70% Possible Prototypes: void readFileIntoArray (string fileName, char charArray []); void compareArrays(char charArrayA[], char charArrayB[], int resultIndices []); void displayReport(char charArrayA[], char charArrayB[], int resultIndices []
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
