Welcome to Jasmin's Math Randomizer Tutor, an exciting and interactive math game, all available right in your console! This fun educational game is designed to help learners practice basic arithmetic operations, with randomly generated questions and score tracking.
- Math Operations: Practice addition, subtraction, multiplication, and division.
- Customizable Questions: Choose the number of questions and the maximum number value.
- Randomized Problems: Questions are randomly generated for a dynamic learning experience.
- Score Tracking: Keeps track of your score and total questions answered.
- User-Friendly Interface: Intuitive prompts and easy-to-use input system.
- Loading Animations: Engaging loading screens for a polished user experience.
(Note: This program is designed for the console—no fancy graphics, just pure math fun!)
- Clone this repository to your local machine:
git clone https://github.com/your-username/math-randomizer-tutor.git
- Compile the code using a C compiler, such as GCC:
gcc -o math_tutor math_tutor.c
- Run the compiled program:
./math_tutor
- Open the
.c
file in Visual Studio Code. - Install the Code Runner extension or ensure you have g++ installed on your system.
- Open the integrated terminal in VS Code and navigate to the file's directory.
- Compile the program using the following command:
g++ file_name.c
- Run the compiled program:
./a.exe
- Run the program and follow the on-screen instructions.
- Use the menu to select a math operation:
- Addition
- Subtraction
- Multiplication
- Division
- Enter your choices for the number of questions and the maximum value of numbers.
- Answer the questions as they appear.
- Check your performance and replay if desired!
The program is divided into several functions for modularity and readability:
- Math Operations: Functions like
addNum
,subtractNum
,multiplyNum
, anddivideNum
handle the arithmetic operations. - User Input: Functions like
maxQuestions
andmaxValue
let the user specify preferences. - Randomization: The randomizing function generates random numbers within a specified range.
- Loading Animations:
intro_loading
andexit_loading
add a visual appeal. - Scoring System: Tracks and displays scores across multiple sessions.
math-randomizer.mp4
- Add support for advanced operations like exponentiation and square roots.
- Implement a leaderboard for competitive scoring.
- Make the program platform-independent by replacing
windows.h
with standard C functions.
Thanks for trying out Jasmin's Math Randomizer Tutor! Contributions are always welcome. Feel free to submit a pull request or open an issue for suggestions.