Computers and Technology

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:

answer
Answers: 2

Similar questions

Предмет
Computers and Technology, 11.11.2019 22:31, kadestew21
1. using arrays: driver's license exam grader system the local drivers license office has asked you to write a program that grades the written portion of the drivers license exam. the exam has 10 multiple choice questions. here, are the correct answers: 1. b 6. a2. d 7. b3. a 8. a4. a 9. c5. c 10. dyour program should store the correct answers shown above in a character array named "correctanswers" (in this assignment you are not doing any string manipulation, so the "answer" array can be a simple character array, not a string).then, it should ask the user to enter the student's answers for each of the 10 questions, and the answers should be stored in another array named "studentanswers"in order to pass the exam a student must answer at least 8 questions out of 10. so, the "grade" function checks the entries in both array and determine if the student has answered at least 8 questions correctly.if student has passed the exam, your program should display the following messagecongratulations! you have passed exam.total number of correct answers: < > total number of incorrect answers: < > if student has failed the exam, your program should display the following messagesorry, you have not passed the exam! total number of correct answers: < > total number of incorrect answers: < > input validation: only accept the letters a, b, c, or d as answers. if user enters any other letter, your program should display a message indicating a, b, c, and d are the only valid inputs. if user enters invalid input more than three times display the message "good bye" and exit the program.
Answers: 3
Do you know the correct answer?
In part 1 you will be creating a quiz grading program. you will compare the student's answers with t...

Questions in other subjects: