sorry...My problem is during the game, if you choose the wrong answer, it gives me the right response, but the counter isnt working, so the game ends. also, if you choose the correct answer, nothing happens.
I am having a problem with this basic game. I can get it to work right, if u choose the right or wrong answer. Any assistance would be appreciated. [ edited to fix code formatting -ds ] [ December 09, 2003: Message edited by: Dirk Schreckmann ]
I guess the best I can contribute is try to make the code most naturally describe your intentions. And be glad we're not using Perl and saying "do something important UNLESS condition" That still makes my skin crawl.
Stan, Yeah I agree. I start Perl next semester. I guess ill be on here for help then too. Thanks.
Andres, My professor just told us to stay away from it. Thats all. I think my professor just doesn't want to confuse us or something.(Since we are beginners)
Oh, and another thing Stan.. I was told to try to stay away from using the "!" (not equal to). Is that considered a wise thing to do? Or what is your opinion?
Thanks Stan! I thought about creating a method too! I wish I was able to view this before I turned in my midterm today. However, I did use the while loop. I got it working great, but, I forgot to end the endless loop(like you said). Hopefully I will not get too many points counted off! I did not think about it until it was too late. I do like your method. That is something that I still need work on. Thanks again!!!
I am doing a program for my java class midterm. I am lost. I made a quiz using JOpionPane and if/else statements. My problem is I need three other steps in my program: 1. When a quiz is completed i need to choose other topic. 2. repeat a topic. 3. display total number of correct answers for all topics.
I think i need some kind of loop. But i cant figure it out. Thanks for helping (in advance).