}
/* (non-Javadoc)
* @see com.jguice.quizzle.interfaces.Quizzer#doQuiz()
*/
public void doQuiz() throws IOException {
Question question;
String userInput = "y";
int numQuestionsLeft;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Quiz Started");
while (userInput.toLowerCase().equals("y")) {
resetQuiz();
while (quiz.hasQuestions()) {
question = quiz.nextQuestion();
numQuestionsSoFar++;
numQuestionsLeft = quiz.getNumQuestions() - numQuestionsSoFar;
question.doPrompt();
userInput = br.readLine();
if (question.checkAnswer(userInput)) {
doCorrectAction();
numCorrect++;
}
else {
doIncorrectAction();