vendredi 29 avril 2016

Java Multiple Choice

Creating my final project I'm having two difficulties

So the program is suppose to generate two random numbers and give the user an option to chose A.(random answer) and B.(random answer) Then to the user must enter A or B and sees if the answer they enter is correct.

My question is how do I test if the user entered the correct answer if they entering a letter and the second one how do I output the answers randomly. I have already calculated answer=num1+num2(which were randomly generated) and then answer2=answer+7; what do I do, I'm stuck..and frustrated




Aucun commentaire:

Enregistrer un commentaire