Computer Science Canada Program gone crazy.... |
Author: | JR [ Mon Oct 18, 2004 2:43 pm ] | ||
Post subject: | Program gone crazy.... | ||
well sort of. the program should do addition subtraction and multiplication to 2 random numbers, and it depends on the users choice. The user gets 5 questions per choice and then if he answers them right from the first time he gets 10 points if not he has 2 more tries which he gets 5 points for the first and 2 points for the third. if the question was answered wrong he gets no points and the program moves on to the next question ouf of 5. for starterts i got and endless loop dont know why, if i type the wrong answer in then it gives the error msg and gives u 3 tries but it gives u endless amount of questions and i only need 5. If i get the answer right the program still gives u 3 tries eventhough u got it right.... i cant exit the program when i press 4 theres an endless loop... how to fix this stuff? Now heres my code: Note( only try it with addtion cause i didnt do it for the other 2, gotta make addition work properly first)
|
Author: | Andy [ Mon Oct 18, 2004 3:55 pm ] | ||
Post subject: | |||
your code is a mess... first off, you have no indents, second, your spacing is really off... and your code is way too complicated... i wrote a basic form of what u want to do in 5 min.. it doesnt have that point stuff u wanted.. but im not gona do all ur hw for you... copy it if u want, but i suggest understanding it and writing ur own
|
Author: | Andy [ Mon Oct 18, 2004 3:58 pm ] |
Post subject: | |
sry.. forgot to put the loop in there, i edited it in now |