Your application must contain and use at least two custom


Create a quiz application in Java that asks the user 5 multiple choice questions, prompts for an answer, then advises the user if their answer is correct or incorrect. If the user provides the wrong answer the application should provide the user with the correct answer. After the user completes the 5 questions the application should provide the user with a summary of their results including the number of correct and incorrect answers as well as their score (percent).

Your application must contain and use at least two custom methods in addition to the main method.

Questions and answers must be read from a file named quiz.txt that is placed in the same folder as the java file being executed.

Questions should be multiple choice with the number of choices presented to the user for each question ranging from 2 to 5. The questions.txt file should contain 10 or more question & answer combinations.

The 5 questions asked should be randomly selected from the questions in this file.

Include error handling.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Your application must contain and use at least two custom
Reference No:- TGS02302765

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)