Question: In Java, create a random number guessing game that prompts the user for a range for the program. If user enters 4 and 60, the

In Java, create a random number guessing game that prompts the user for a range for the program. If user enters 4 and 60, the program generates a random number between 4 and 60. If the user does not enter a range, the default range should be between 1 and 100. If the user enters a number that is too low, the program should return "too low. try again". If the number is too high it should return "too high. try again". The program should also keep track of how many tries it takes for the user to figure out the correct number.

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!