2.2.2 Package Feedback

2.2.2.1 Description

This package Feedback is the work horse of all three packages, here there is only one GUI and its job is to confirm to the user the result of their answer, it does this by getting the users answer first and then goes to the database and return the correct answer, if correct it will increment the score and provide them with an option to go back for another question or have a look to see where they are in the table. If their answer is correct they are awarded a score and this is entered into the database, if not, all picked questions are returned to “Unpicked” and the player is given another chance to start again with a score of zero of course. Also if their answer is correct they receive a special message of encouragement, the GUI also keeps track of questions picked and marks them off, this avoids the player being asked the same question again.

2.2.2.2 Use Case Diagram for Feedback

For this package there is a lot of involvement with the database which involves getting the correct answer, updating the players score, checking off what questions were asked and returning the database back to unpicked questions are available for when the player gets the answer wrong.