Skip to content

Adithyavkotian/Quizgame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Java application that implements a simple quiz.

Features:

Reads questions and answers from a text file (questions.txt). Presents questions to the user one at a time. Stores user answers and calculates the total score. Provides feedback for each answer (correct or incorrect). Displays a list of incorrectly answered questions at the end (if any). Requirements:

Java Runtime Environment (JRE) Instructions:

Create a text file named questions.txt in the same directory as the Java source code. Each line in the text file should be formatted as follows: question:answer Replace question with the actual question text. Replace answer with the correct answer to the question. Compile and run the Quiz3.java class. Example questions.txt:

What is the capital of France? Paris What is the largest planet in our solar system? Jupiter What is the chemical formula for water? H2O Note:

The application assumes that the questions file is named questions.txt and is located in the same directory as the source code. The application expects each line in the question file to be formatted correctly (question:answer).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages