lundi 23 mars 2015

GuessMe homework [on hold]

I need to write a program that is called GuessMe with a method that generates a random number between 1 and 100 allowing the user to guess 10 times. Have to say that the number is too high or too low or just right. If the user guesses the number then it will call winner, and if the user runs out of attempts, then will be called loser.


Sample.


Welocme to the guessing game. choose number between 1 and 100. What is your guess? 83 Too high. What is your guess? 22 too low. What is your guess? 53 You guessed my number in three tries. Thanks for playing.





Aucun commentaire:

Enregistrer un commentaire