Computer Science Canada

im making a quiz

Author:  zaross [ Tue Oct 01, 2019 2:49 pm ]
Post subject:  im making a quiz


<I am trying to make a system for wrong answers>


I want to make the program either restart or stop when the user gets to many wrong answers
<I want to make the program either restart or stop when the user gets to many wrong answers>


what is the problem you are having?
<ive looked through books and everything to find something and nothing>


Turing:




turing version
<4.1.1>

Author:  freshHeir [ Wed Nov 13, 2019 9:04 am ]
Post subject:  Re: im making a quiz

What you could do in this case is have a variable that tracks the number of incorrect responses, and for each question, check if that variable has exceeded a certain amount. If so, stop the program.

Author:  Styx [ Thu Nov 14, 2019 10:06 am ]
Post subject:  Re: im making a quiz

freshHeir @ Wed Nov 13, 2019 9:04 am wrote:
What you could do in this case is have a variable that tracks the number of incorrect responses, and for each question, check if that variable has exceeded a certain amount. If so, stop the program.


Yes, please do this it is a lot more readable too.


: