Question: Write a java program for a Number Guess game. Prompt the user to enter a number in range 1 to 10 (check if the entry

  • Write a java program for a Number Guess game.
  • Prompt the user to enter a number in range 1 to 10 (check if the entry is within that range) if not prompt to enter the correct range.
  • Create a method to generate a random number( integer from range 1-10) and check if it is the same as users' input.
  • If the user entry and random number is the same print You are the winner

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!