Question: In java program and please make sure the question missed is correct.. Because it ask for question that is wrong not the total number of

In java program and please make sure the question missed is correct.. Because it ask for question that is wrong not the total number of missed questions
The local Driver's License Office has asked you to write a program that grades the written portion of the license exam. The exam has 20 multiple choice questions. Here are the correct answers: 1. B 5. C 9. C 13.D 17. C 2.D 6. A 10. D 114. A 18. B 3. A 7 B 11.B 15. D 19. D 4. A 8. A 12. C 16. C 20. A A student must correctly answer 15 questions of the 20 questions to pass the exam. Write a program named DriverExam that holds the correct answers to the exam in an array field. The class should have an array field to hold the student's answers. The class should have the following methods: passed. The method returns true if the student passed the exam, false otherwise totalCorrect: returns the total number of correctly answered questions totallncorrect: returns the total number of incorrectly answered questions questions Missed: an int array containing the question numbers of the question that the student missed The main method asks the user to enter a student's answers, and then display the results. Input validation: only accept the letters A, B, C, or D as answers Requirements: 1. You can use array or ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
