 |
 Fall Semester 2009
|
Homework Four
Implement a Java GUI-based program that works like this.
That is:
- the program asks random addition questions
- numbers in the questions are random in the range [-50, 50]
- user can and should enter an answer, then push the button
- if answer is right user score goes up, new question is presented
- if answer is wrong user gets two more chances before losing point
- three wrong answers in succession will make the user lose a point
- once the user finishes with a question a new random question is put together and posted
Here's the kind of user interface your program might have:
I'm not saying that the interface above is suited for your problem.
I am just saying that it contains all the elements you might need for the interface to your problem.
Updated by Adrian German for A202/A598 and A290/A590 Java