2.2.2 Package Feedback
2.2.2.3.3 Sequence Diagrams for Feedback.
Scenario 1 Right answer
Scenario 2 Wrong answer
Scenario 3 All questions are answered (Game over)
Scenario 1 Right answer
Player submits answer to Answered servlet
Answered gets players name from cookie
It next gets the question number of that question
It then gets the answer of that question
A connection to a database is opened
It gets the correct answer for that question
It calculates the score if answer is right
If player’s answer is correct their score is entered into a database
A connection to a database is opened
The players new score is entered into the database
A message is generated for that particular score
The question is then ticked off as "Picked"
A connection to a database is opened
The question is ticked
HTML is processed
The player is presented with this information