Ten Additions
- Please develop a program which will randomly generate 10 addition
exercises for the user to practice.
- Whenever we say "randomly", be sure to set the seed properly so
that each execution generates different results.
- You already learned how to check whether the user mentally
calculates the addtions correctly.
Here is a special requirement: In this exercise, we want to limit the
summation of the two numbers to two digits (you must agree that a
summation less than 100 will be easier to calculate).
Please draw a flowchart and discuss with TAs before you proceed to write
the detailed code.
- You also learned how to measure the
time spent by the user to finish these 10 additions.
Add this feature to your program. At the end of this exercise,
show a message "You spent XX seconds in this exercise."
- Don't forget to use conditional operator (P.133) to handle "You
made 2 mistake(s) today."