Write a program that will randomly generate a number -


Guessing Game

Write a program that will randomly generate a number (1-10)

Prompt the user to guess the number. The user has 5 tries to guess the correct answer. After the user has either guessed correctly or exceeded the maximum number of tries, prompt the user to Play Again (Y or N). The program will keep a count of how many numbers were guessed correctly and how many numbers the user couldn't guess correctly (HINT: the game is played 5 times....Correctly guessed 2 times....Incorrectly guessed 3 times). When you user selects N (doesn't want to play anymore) display the counts.

REQUIREMENTS:

1. Use loops, ifs, switch

2. Use methods

3. Error check every entry made

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write a program that will randomly generate a number -
Reference No:- TGS02396890

Now Priced at $15 (50% Discount)

Recommended (98%)

Rated (4.3/5)