Thanks, guys!
Type: Posts; User: kunimaro15689
Thanks, guys!
Thanks for your help xPhish! It helped a lot! :D
Thanks, Greg. I have defaulted the answer to 0 and that is always the result when I run the game. This leads me to believe that my second switch statement is a bit wrong. In the first I use random...
The threads you merged were the only two.
I am making a math game that asks the user elementary questions.I have no errors. The answer variable was to be initialized in my second switch statement with the value 0 being default for the...
I made a math game with the variable "answer" being the actual answer. But the actual answer is dependent upon the math question. Can I use a switch statement to initialize the variable and map it to...
Well if it is trouble to you,do not respond. It will only cause more trouble for you.
After this problem is fixed, my math game will run. The answer variable is supposed to be equal to the cases in the second switch statement by random but I get errors whenever I try to initialize it...
That is fine. I had an if else block before and it worked. I am just practicing and seeing what I can and cannot do. My primary concern is generating random math operators to appear in the question.
I am stuck with two switch statements that I feel I am close to achieving. My first switch statement is to generate random mathematical operators for the math questions in the game (generated...
Thanks. I fixed my code in a new thread where I was more specific. Using this method I would have to use everything as an integer for the loop to work? I cant make the entire question an integer so I...
So my little math game is working so far. I can only do addition though. I know how to fix it if I can find out how to generate random math operators. After that I want to use a loop (or a better...
I have made a basic math game that asks you questions and tells you if you have answered them correctly or incorrectly. The game runs great! The thing is that it asks you a question one time and...
Thank you, Greg. It worked!
Sorry for the mistake, greg. The problem is the scanner and double being incomparable...
I created a variable for the scanner called serena. Serena variable is equal to what the user inputs. My if statement says that if the answer the user enters is not equal to the actual answer then it...
My name is Chevron.
I want to learn as much syntax as possible before I leap into my mighty Java expedition is search of the gifts of the almighty Java gods
What is a good site or book to learn...
My name is Chevron. I like Java and I like apples.
I know little about both.
They are like distant friends.... With trust issues who smoke cigarettes to make themselves feel cool.
>>