This is a simple Quiz Generator application built using Java, where users can create quizzes with multiple questions and options, then take the quiz to check their score.
- Create a quiz by specifying the topic, questions, and answers.
- Take an existing quiz and answer the questions.
- Provides feedback on the score after completing the quiz.
To access this project, you can choose any of the methods below:
-
Open a terminal and use the following command to clone the repository:
git clone <https://github.com/Royisten/Techplement>
-
Open the cloned project folder in your IDE (e.g., IntelliJ IDEA, Eclipse, or VS Code).
-
Follow the "How to Run the Application" section below.
-
Navigate to the repository's page and click on the
Download ZIPbutton. -
Extract the downloaded ZIP file to a folder on your computer.
-
Open the extracted folder in your preferred IDE.
-
Follow the "How to Run the Application" section below.
To run the application, simply execute the Main.java class.
-
Open the project folder in your IDE (such as IntelliJ IDEA, Eclipse, or VS Code).
-
Locate the
Main.javafile under theQuizGeneratorpackage. -
Run the
Main.javafile. -
Once the program is running, you'll see the following menu in the terminal:
Quiz Generator Menu: 1. Create Quiz 2. Take a Quiz 3. EXIT THE APPLICATION ENTER YOUR CHOICE:You can enter a number to select one of the options:
- 1: Create a new quiz by providing a quiz topic, questions, options, and the correct answer.(type
DONEto finish writing a question and also it's options) - 2: Take an existing quiz, select a quiz from the available list, and answer the questions.
- 3: Exit the application.
- 1: Create a new quiz by providing a quiz topic, questions, options, and the correct answer.(type
To run the application from the terminal:
-
Navigate to the Project Directory: Open a terminal and navigate to the root of your project.
-
Compile the Java Files: Run the following command to compile all the Java files:
javac WEEK_1_TASK/QuizGenerator/*.java
- Run the program and select
Option 1from the menu. You will be prompted to enter the quiz topic, questions, options, and correct answers.
- Select
Option 3from the menu. The program will terminate and display a goodbye message.
-
Ensure you have the
Java Development Kit (JDK)installed on your system to compile and run the application. -
Verify that the folder structure matches the package declarations in the code
WEEK_1_TASK.QuizGenerator. -
If you encounter any issues, recheck your environment setup or ensure all files were imported correctly.