Question: C++ Coding In part 1 you will be creating a quiz grading program.You will compare the student's answers with the correct answers, and determine if

C++ CodingC++ Coding In part 1 you will be creating a quiz gradingprogram.You will compare the student's answers with the correct answers, and determineif the student passed the quiz or not The program will makeuse of two parallel arrays Each array must be able to supportup to 20 characters (so you have two arrays of chars, eachone with 20 elements) Your program will need to read in the

In part 1 you will be creating a quiz grading program.You will compare the student's answers with the correct answers, and determine if the student passed the quiz or not The program will make use of two parallel arrays Each array must be able to support up to 20 characters (so you have two arrays of chars, each one with 20 elements) Your program will need to read in the student input file name from cin. It will also need to read in the answer file name from cin. The contents of the student input file should be read into one char array. The file will contain 20 characters, each character on a separate line of the file. The first line in the input file will contain the students answer to the first question, the second line will contain the student's answer to the 2nd question, and so on for 20 questions. The answers are A, B, C or D (all upper case) The answer file will be read in as well, one answer per line for 20 answers. The first line of text is the answer for question 1, then second line is the answer for question 2, and so on As always, close the input files when you are done with them. Your program needs to determine the number of questions that the student missed and then display the following A list of questions missed by the student, showing the question number (1 through 20), the correct answer, and the incorrect answer. The total number of questions missed by the student . The percentage of the questions answered correctly. If the percentage of questions answered correctly is 70% or more indicate that the student passed, otherwise state that the student failed the quiz. You need to have at least the following three functions, including main Read function One function needs to be passed a char array of size 20, it also needs to be passed an input file name. The return from the function should be a bool value The function should open the input file and read the contents into the array that was passed to it. If the file could not be opened it should return back false. If the read was successful the program should return back true Display function The display function will be passed the two arrays and should calculate and display the results from the program

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!