Additions with Limited Time

  1. In contrast with the previous exercise which always requests a user to perform 10 addition exercises, in this exercise we want to see how many additions a user can perform in a limited period (e.g. 1 minute).
  2. You will have a loop which terminates after the time limit is reached.
  3. Since the numbers will always be less than 100, you should be able to align them nicely.

The program may run as follows.

( 1) 16 +  5 = 21
( 2) 69 + 26 = 95
( 3)  0 +  2 = 0
 No!  0 +  2 = 2
( 4) 45 + 38 = 83
( 5) 43 + 18 = 61
( 6) 17 + 80 = 87
 No! 17 + 80 = 97
( 7)  4 + 66 = 70
( 8) 45 + 49 = 94
( 9)  2 + 85 = 87
(10)  9 +  5 = 14
(11) 50 +  5 = 55
(12) 24 + 34 = 58
(13)  6 + 56 = 62
(14)  5 + 24 = 29
(15) 71 + 27 = 98
(16) 43 + 34 = 77
(17) 21 +  0 = 21
(18) 32 + 28 = 60
(19)  8 + 64 = 72
Time is up!
You made 2 mistakes today.
You spent 62 seconds in this exercise.