Professional Documents
Culture Documents
ITC Project
Objective
Your program should prompt your brother with the following menu:
P: Practice
Math S: Show
Score Q: Quit
When “P” is chosen, your program should then prompt him for the difficult level. The difficulty level
can be easy, medium, or hard. The difference between easy, medium, and hard is simply that in
easy level, the operand of each question should be from -10 to 10. In medium, they can be
between -50 and +50. And in hard, they can be between -100 and 100.
Then it should prompt him with the desired number of problems. The questions can be addition,
subtraction, division, or multiplication. You really want to mix things up so there is no specific
order. Rather the program should randomly pick a question from addition, subtraction, division, or
multiplication. Furthermore, the operands for the questions should be randomly generated as well.
For division, you want to ensure the answer is a whole number.
Your program should keep track of how many answers are wrong and belong to which category
(Addition, Subtraction, Multiplication 0r Division).
Selecting “S: Score” should print out the last score the user had. If there is no score to display, then
display: “No score found”.
The menu should repeat unless the user chooses “Q: Quit”
Scoring Details
Each question’s score will depend on the difficulty levels. (For example: easy: 2 marks, medium:
4 marks and hard: 5 marks). Show the individual difficulty question’s scores.
Sample Output
Please make a selection from the following:
P: Practice Math
S: Show Score.
Q: Quit.
No score found.
E: Easy
M: Medium
H: Hard
What is 92/2? 44
What is 86-70? 16
Division
P: Practice Math
S: Show Score.
Q: Quit.
P: Practice Math
S: Show Score.
Q: Quit.
Submission instructions
You need to submit the c++ file only.
Notes on Grading
- All variables should have informative names.
- Your input/output should match the examples.
- Every program (parts) must have comments. There should be header comments in your program
including your name and a brief introduction of the program.
- Any plagiarism/cheating would be strictly dealt with.
- Use correct indentation.
- Your program will be evaluated by both of your course instructor and lab instructor.
- Both of the group members should have complete understanding of the project. Any question can be
asked from any one.