How nettlsimrox/mathtutorv3 works
MathTutorV3 is a single-file, interactive console math tutor. The user provides a name, answers randomly generated arithmetic questions with up to three attempts, and can continue practicing. The program tracks correct and incorrect answers to adjust difficulty, then prints a goodbye message. These stages and behaviors are implemented together in main.cpp rather than separate modules; there is no persistent storage or external service. The graph reflects the single sampled source file.
Main entry points: main.cpp Tutor Session
Components 8
Math Tutor
- Tutor Session
main.cpp - Welcome and Name
main.cpp - Question Generation
main.cpp - Answer Attempts
main.cpp - Level Adjustment
main.cpp - Continue Prompt
main.cpp - Goodbye
main.cpp
Other components
- Learner
Connections 10
- Learner → Tutor Session: starts
main.cpp - Tutor Session → Welcome and Name: prints and reads
main.cpp - Tutor Session → Question Generation: generates
main.cpp - Tutor Session → Answer Attempts: prompts and checks
main.cpp - Answer Attempts → Level Adjustment: updates totals
main.cpp - Tutor Session → Continue Prompt: asks
main.cpp - Continue Prompt → Question Generation: repeats when accepted
main.cpp - Tutor Session → Goodbye: prints on exit
main.cpp - Learner → Answer Attempts: enters responses
main.cpp - Learner → Continue Prompt: chooses whether to continue
main.cpp