Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.05 KB

File metadata and controls

23 lines (20 loc) · 1.05 KB

Key Concepts Used

  • ✅ The player can choose the number of questions.
  • ✅ Difficulty levels are available: Easy, Medium, Hard, or Mixed.
  • ✅ The player can select the operation type: Add, Subtract, Multiply, Divide, or Mixed.
  • ✅ Questions are generated randomly to ensure a different experience each time.
  • ✅ The program checks answers instantly and updates the score (Right vs. Wrong).
  • ✅ At the end of the quiz, a clear summary is displayed including:
    • Total correct answers
    • Total wrong answers
    • Final result (Pass / Fail)
  • ✅ Console colors change for better user experience:
    • 🟢 Green = Right
    • 🔴 Red = Wrong

What I Practiced

  • ✔️ Using Enums and Structs to manage data.
  • ✔️ Random number generation for dynamic question creation.
  • ✔️ Functions and modular programming for a clean structure.
  • ✔️ Handling user input and controlling game flow.
  • ✔️ Simple error handling to ensure graceful behavior with unexpected inputs.
  • ✔️ Replay loop logic allowing users to restart the quiz smoothly.