The document provides instructions for a laboratory exercise to create a quiz bee program. Students will create a Java project with an array of 10 multiple choice questions with 3 choices each. The program will prompt the user to choose A, B, or C and handle exceptions for invalid, blank, or non-letter answers by prompting the user to answer again. It will then display the user's score. The program will be graded based on correctness, logic, efficiency, and adherence to syntax rules.
The document provides instructions for a laboratory exercise to create a quiz bee program. Students will create a Java project with an array of 10 multiple choice questions with 3 choices each. The program will prompt the user to choose A, B, or C and handle exceptions for invalid, blank, or non-letter answers by prompting the user to answer again. It will then display the user's score. The program will be graded based on correctness, logic, efficiency, and adherence to syntax rules.
The document provides instructions for a laboratory exercise to create a quiz bee program. Students will create a Java project with an array of 10 multiple choice questions with 3 choices each. The program will prompt the user to choose A, B, or C and handle exceptions for invalid, blank, or non-letter answers by prompting the user to answer again. It will then display the user's score. The program will be graded based on correctness, logic, efficiency, and adherence to syntax rules.
At the end of the exercise, the students should be able to:
Create a simple program for a quiz bee.
Software Requirements:
Latest version of NetBeans IDE
Java Development Kit (JDK) 8
Procedure:
1. Create a folder named LastName_FirstName (ex. Reyes_Mark) in your local drive.
2. Create a new project named LabExer5B. Set the project location to your own folder. 3. The program shall: contain an array of 10 multiple choice questions with three (3) choices each and require the user to choose among A, B, or C; Note: Cases are ignored. Lowercase letters are acceptable (a, b, c). 4. Create a try-catch structure to handle three (3) exceptions. These are when the user inputs the following: an invalid letter (not A, B, or C) a number or any special character blank (no answer) 5. Prompt the user that he can answer again if any of the three (3) exceptions is thrown. 6. Display the score.
GRADING RUBRIC (100 points):
Criterion Description Max Points
Correctness The code produces the expected result. 40 Logic The code meets the specifications of the problem. 40 Efficiency The code is concise without sacrificing correctness and logic. 10 Syntax The code adheres to the rules of the programming language. 10