program two multiple choice exam write a program that grades the writt
Question
Program Two
Multiple Choice Exam
Write a program that grades the written portion of the Multiple Choice exam. The exam has 25
multiple choice questions. Here are the correct answers:
1.B 2.D 3.E 4 A
5.C 6.A 7.B
11.B 12.C 13.D 14.A
21.E 22.B. 23.C 24.A. 25.D
15.D 16.C 17.C
8.E 9.C 10.D
18.B 19.E 20.A
A student must correctly answer 20 of the 25 questions to pass the exam.
Have a array of char to hold the correct answers.
Have a array of char to hold the student answers.
Write the following methods:
createCorretAnswer: returns a char array with correct answers in it.
create StudentAnswers: returns a char array with students answers in it. ask user to input in the
method.
Input Validation: Only accept the letters A B C D and X as answers, X means the student missed it.
passed: returns true if the student passed the exam or false if the student failed.
totalCorrect: returns the total number of correctly answered questions
totalIncorrect: returns the total number of incorrectly answered questions
totalMissed: returns the total number of questions missed.
questionsCorrect: An int array containing the questions numbers of the questions that the student got
it correct.
Total of at least 10 methods + main.
questionsIncorrect: An int array containing the questions numbers of the questions that the student
got it incorrect.
questionsMissed: An int array containing the questions numbers of the questions that the student
missed.