Exam Grader (parallel arrays)This program must use functions.You can not use an exit or break function.  One of your professors has asked you to write program to grade her final exams, which consist...


Exam Grader (parallel arrays)This program must use functions.You can not use an exit or break function.  One of your professors has asked you to write program to grade her final exams, which consist of only 20 multiple-choice questions. Each question has one of four possible answers: A, B, C, or D. The file CorrectAnswers.txt contains the correct answers for all of the questions, with each answer written on a separate line. The first line contains the answer to the first question, the second line contains the answer to the second question, and so forth. The file is at the bottom of the Moodle screen. Write a program that reads the contents of the CorrectAnswers.txt file into a char array, then reads the contents of another file containing a student's answers, into a second char array. The file StudentAnswers.txt is at the bottom of the Moodle screen. The program should ask for the filenames. The program should determine the number of questions that the student missed, then display the following: A list of the questions missed by the student, showing the question number, the correct answer, and the incorrect answer provided by the student for each missed question. The total number of questions missed. The percentage of questions answered correctly. This can be calculated as Correctly Answered Questions / Total Number of Questions If the percentage of correctly answered questions is 70 percent or greater, the program should indicate that the student passed the exam. Otherwise, it should indicate that the student failed the exam.


Use functions as appropriate to perform the various tasks required such as for loading the arrays and grading. There should not be any comparing or calculations in the main program. That should be found in a function. Remember only 1 return per function and main program.


May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here