Question: IN JAVA The local Driver s license office has asked you to write a program that grades the written portion of the driver s license

IN JAVA
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 5 multiple choice questions. Here are the correct answers: 1. B 2. D 3. A 4. A 5. C A student must correctly answer 3 of the 5 questions to pass the exam. Use arrays to hold correct answers to the exam and student answers. Incorporate the following methods: 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. questionsMissed: An int array containing the question numbers of the questions that the student missed. Demonstrate the program by asking the user to enter a students answers, and then display the following results: Number of correct answers. Number of incorrect answers. A message that says whether the student passed or failed the exam. The question numbers the user missed. Input Validation: Only accept the letters A, B, C or D as answers.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!