Skip to content

SamarthKulkarni20/QUIZ-APPLICATION1-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฏ Quiz Application.

๐Ÿ“Œ Overview

This is a console-based quiz game written in C that allows users to:

Register and log in. Choose a difficulty level: Beginner (B), Intermediate (I), or Pro (P). Answer multiple-choice questions. Track their scores and save them to a leaderboard.

๐Ÿ“‚ Project Structure

main.c โ€“ The core program that runs the quiz system. questions.txt โ€“ Stores quiz questions, answers, and difficulty levels. users.txt โ€“ Stores registered user credentials. leaderboard.txt โ€“ Maintains user scores and rankings.

๐Ÿ›  Features

โœ… User Authentication โ€“ Register and log in before playing. โœ… Difficulty Levels โ€“ Choose from three levels: Beginner, Intermediate, or Pro. โœ… Randomized Questions โ€“ Questions are shuffled to enhance replayability. โœ… Scoring System โ€“ Tracks correct answers and saves scores to the leaderboard. โœ… Leaderboard Display โ€“ View top scores after playing.

๐Ÿ“œ File Formats

Each line follows this format: questions.txt

Question|Option1|Option2|Option3|Option4|Correct Answer|Difficulty Example: What is 2 + 2?|1|2|3|4|D|B D โ€“ Correct answer (4th option). B โ€“ Difficulty level (Beginner, Intermediate, Pro).

users.txt Username|Password Example: john_doe|securepass123

leaderboard.txt Username|Score|Difficulty Example: alice|10|Pro

๐ŸŽฎ How to Play

Register or log in. Choose a difficulty level. Answer up to 15 randomly selected questions. View your final score and save it to the leaderboard. Optionally, view the leaderboard or play again.

๐ŸŽฏ Additional Things that can be implemented in the Future

Implementing password encryption for security. Using SQL as DataBase instead of Files Add a GUI version using a graphical library. Introduce timed questions to make the game more challenging.

                                                  THANK YOU!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages