Assignment 6
Deadline - Monday, Apr 26
The Question
Before starting this assignment, read the assignment handout given to you by the professor atleast once. If you do not understand the question, ask
me. This assignment deals with the following concepts:
- Random Number Generation
- Classes and Functions
Your assignment should implement
- A Technique to decide which operator to be used based on user selection.
- Perform 6 operation (addition or multiplication) based on user choice.
- Select random numbers to perform your operations (Remember for addition numbers should be between 0..100 and for multiplication numbers should be between 0..12),
The console output should look something like this
Enter the operation for which you want to be tested (+ *)? +
25 + 3 = ? 28
Correct
5 + 13 = ? 12
Wrong try again
5 + 13 = ? 10
Wrong try again
5 + 13 = ? 17
Wrong You Suck!!!
0 + 9 = ? 9
Man you made it!
53 + 57 = ? 110
SWEEEEET!!!!
18 + 16 = ? 3
Wrong try again
18 + 16 = ? 34
Excellent!!!
40 + 97 = ? 137
Are you related to Einstein by any chance?
You got 5 out of 6 correct
You will be graded on
- Implematation of class and functions. This means even if everything is working, you might loose credit for implementation
- Console output should be in the same manner as described above. Any deviation from this pattern will result lost credits
- Try to make things look as smooth and simple in you program source code.
What do I need from you
- Source file called Assignment6.cpp which has your source code. You do not need to submit any other file(s).
Please check the important guidelines before submitting your project to me.
The assignment is due by Monday, Apr 26.
Additional help for the assignment
- If you have any doubts, come and meet me in my office hours. Please use them as they are meant for you.
If these timings are not convinient, email me with your best timings.
Back