Question: using java to make a program This case study generates a random number and lets the user repeatedly guess a number until it is correct.
This case study generates a random number and lets the user repeatedly guess a number until it is correct. The problem is to guess what number a computer has in mind. You will write a program that randomly generates an integer between 0 and 100, inclusive. The program prompts the user to enter a number continuously until the number matches the randomly generated number. For each user input, the program tells the user whether the input is too low or too high, so the user can make the next guess intelligently. Here is a sample run: Key Point VideoNote Guess a number Guess a magic number between 0 and 100 Enter your guess: 50 Enter Your guess is too high Enter your guess: 25t Your guess is too 1ow Enter your guess: 42 Your guess is too high Enter your guess: 39Etr Yes, the number is 39
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
