Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The local Driver\'s License Office has asked you to write aprogram that grades t

ID: 3611657 • Letter: T

Question

The local Driver's License Office has asked you to write aprogram that grades the written portion of driver's license exam.The exam has 20 multiple choice questions. Here are the correctanswers: 1. B      6.A      11.B      16. C 2. D      7.B      12.C      17. C 3. A      8.A      13.D      18. B 4. A      9.C      14.A      19. D 5. C      10.D    15.D      20. A Your program should store the correct answers shown above inan array. It should ask the user to enter the student's answers foreach of the 20 questions, and the answers should be stored inanother array. After the student's answers have been entered, theprogram should display a message indicating whether the studentpassed or failed the exam. (A student must correctly answer 15 ofthe 20 questions to pass the exam.) It should then display the total number of correctly answeredquestions, the total number of incorrectly answered questions, anda list showing the questions numbers of the incorrectly answeredquestions. Input Validations: Only accept the letters A, B, C, or Das answers. The local Driver's License Office has asked you to write aprogram that grades the written portion of driver's license exam.The exam has 20 multiple choice questions. Here are the correctanswers: 1. B      6.A      11.B      16. C 2. D      7.B      12.C      17. C 3. A      8.A      13.D      18. B 4. A      9.C      14.A      19. D 5. C      10.D    15.D      20. A Your program should store the correct answers shown above inan array. It should ask the user to enter the student's answers foreach of the 20 questions, and the answers should be stored inanother array. After the student's answers have been entered, theprogram should display a message indicating whether the studentpassed or failed the exam. (A student must correctly answer 15 ofthe 20 questions to pass the exam.) It should then display the total number of correctly answeredquestions, the total number of incorrectly answered questions, anda list showing the questions numbers of the incorrectly answeredquestions. Input Validations: Only accept the letters A, B, C, or Das answers.

Explanation / Answer

please rate - thanks #include using namespace std; int main() {char correct[]={"BDAACABACDBCDADCCBDA"}; char student[20]; int right=0,wrong=0,i; for(i=0;i