Question: Java Programming The local driver's license office has asked you to create an application that grades the written portion of the driver's license test. The
Java Programming
The local driver's license office has asked you to create an application that grades the written portion of the driver's license test. The test has 15 multiple-choice questions. The correct answers are as follows:
1. C 2. D 3. B 4. A 5.
C 6. D 7. B 8. A 9. C 10. D
11. A 12. C 13. D 14. A 15. B
A student must answer 10 of the 15 questions to pass the test. Write a class named DriverTest that holds the correct answers to the test in an array. The class should also have an array that holds the student's answers. Then write another class that calls the methods from your DriverTest class.
Valid input: Only A, B, C, or D are acceptable answers to questions.
The following methods should be provided:
- Passed Returns true of the student passes or false if the student fails.
- totalCorrect Returns the total correctly answered.
- totalIncorrect Returns the total incorrectly answered.
- questionsMissed Returns an array containing the missed questions.
- YourScore Returns the percentage correct.
***Must require scanner object and the user's input***
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
