Question: in java how do I create a game of number guessing. Your program will use while loop, if / else statement and static methods to

in java how do I create a game of number guessing. Your program will use while loop, if / else statement and

static methods to validate user input

(both numeric and string inputs).

If the users guess is more than 10 higher than the random number, the

application should say, Way too high!

If the users guess is higher than the random number, the application should say, Too high!

If the users guess is lower than the random number, the application should say, Too low!

The message thats displayed when the user gets the number should vary

depending on the number of guesses. For example:

Number of guesses

<=3 Great work! You are a mathematical wizard.

>3 and <=7 Not too bad! You've got some potential.

>7 What took you so long? Maybe you should take some lessons

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!