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 3 All questions are answered (Game over)

  1. Player submits answer to Answered servlet
  2. Answered gets players name from cookie
  3. It next gets the question number of that question
  4. It then gets the answer of that question
  5. A connection to a database is opened
  6. It gets the correct answer for that question
  7. It calculates the score if answer is right
  8. Create new player form.
  9. If player’s answer is correct their score is entered into a database
  10. A connection to a database is opened
  11. The players new score is entered into the database
  12. A message is generated for that particular score
  13. The score is then assigned a value of zero
  14. A Slated object is generated
  15. A connection to a database is opened
  16. All picked questions that were picked are returned to unpicked
  17. HTML is processed
  18. The player is presented with this information