This program implements a simple Math Quiz Game in C++. Players are presented with math questions based on their chosen difficulty level and operation type. After answering each question, the game provides feedback and calculates the final score.
- The user specifies how many questions they want to answer.
-
[1] Easy: Small numbers (1–10).
-
[2] Medium: Larger numbers (10–50).
-
[3] Hard: Even larger numbers (50–100).
-
[4] Mix: A random difficulty level for each question.
-
[1] Addition (+)
-
[2] Subtraction (-)
-
[3] Multiplication (×)
-
[4] Division (/)
-
[5] Mix: A random operation for each question.
- Correct Answer: Green screen ("2F") and positive feedback.
- Wrong Answer: Red screen ("4F"), negative feedback, and the correct answer is displayed.
- Displays the number of correct and incorrect answers.
- Indicates if the player passed or failed (more correct answers than wrong answers = pass).
After finishing the quiz, the player can choose to play again or exit.
- C++ Compiler
- Compatible operating system to run terminal color commands (system("color")).
- Ensure you have a C++ compiler such as g++.
- Download the source code to your device.
- Open the command line and navigate to the folder containing the code.
- Run the following command to compile the code:
git clone https://github.com/TariqCodeBit/Project_B.git
-
Run the program.
-
Enter the number of questions.
-
Choose a difficulty level and operation type.
-
Answer the questions presented on the screen.
-
View the results and decide if you want to play again.
- The Game was developed by Tatek.
- This Project is open source under the .....