Generating an Addition Quiz

Write a class named AdditionQuizGenerator whose main method prompts the user to answer randomly generated addition questions (i.e., each time the program is run, different numbers should appear). The numbers to be added should each be less than 100, and the questions should continue to be generated until the user gets 5 of them correct in a row.

Sample run:

This program will quiz you on simple addition.
Answer five in a row correctly to stop.
----------------------------------------------
49 + 70 = 119
correct!

44 + 67 = 112
whoops!

87 + 71 = 158
correct!

25 + 35 = 60
correct!

0 + 78 = 78
correct!

50 + 59 = 109
correct!

81 + 61 = 142
correct!

Good job! You got five in a row!

Tags: java.util.Scanner, java.util.Random, while-loop