Question
Java Program Driver License Exa Write a program that grades the written portion of the driver's license exa. The exa has 20 multiple-choice questions. Here
Java Program
Driver License Exa Write a program that grades the written portion of the driver's license exa. The exa has 20 multiple-choice questions. Here are the correct answers: 1. B 2.D 3.A 4 A 5. C 6. A 7. B 8.A 9. C 10.D 11. B 12. C 13.D 14.A 15.D 16. C 17. C 18. B 19.D 20. A A student must correctly answer 15 of the 20 questions to pass the exa Have an array of chars to hold the correct answers. Have an array of char to hold the student's answers. Write the following methods: createCorretAnswer: returns a char array with correct answers in it. createStudentAnswers: returns a char array with the student's answers in it. ask the user to input the method. passed: returns true if the student passed the exa or false if the student failed. total correct: returns the total number of correctly answered questions totalIncorrect: returns the total number of incorrectly answered questions questions missed: An int array containing the question numbers of the questions that the student missed. InputValidation: Only accept the letters A B C D and X as answers, X means the student missed it. Test all the methods in the main in proper order.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started