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 multiple choice questions. Here are the correct answers: B D A A C A student must correctly answer of the 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
