3.1 Package Feedback

3.1.2.2. Class Diagram for Feedback

Message :
This presents a message to the player, the message may take in a value and in return depending on their score it will return the appropriate message.

InsertScore:
As the player keeps answering correctly their score is awarded and is automatically updated into the database, this class finds the players name in the database and then inserts the score.

Correct:
Once the question is answered correctly then that question is then ticked off in the database as "Picked" the reason for this is to make sure that the player is not asked the same question again in the duration of the game.

Slated:
On the other hand when a player has answered a question incorrectly then all of the questions in the database are returned to "Unpicked" which allows the class Roulette to pick all of the unpicked questions in the event that the user would like to try and play again.

GetAnswer:
Here the correct answer is retrieved from the database, it takes the number of the question and looks for the answer in the database, thus returning the answer to Answered class.

Answered:
This is a GUI to the player and processes all the information from the other classes and the multi2 GUI which posts the answers and presents this to the player. It can present various forms depending on the information it receives. It has no dealings with the database itself.

HttpServlet:
This is the parent class for all servlets.