Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 im making a quiz
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
zaross




PostPosted: Tue Oct 01, 2019 2:49 pm   Post subject: im making a quiz





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>



turing quiz.t
 Description:
the quiz is here

Download
 Filename:  turing quiz.t
 Filesize:  10.41 KB
 Downloaded:  219 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
freshHeir




PostPosted: 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.
Styx




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: