Question: java by Netbeans Question 1: Write a program that randomly generates an integer between 0 and 100, inclusive. The program prompts the user to enter
Question 1: 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 choose the next input intelligently. Sample run: run: Guess a magic number between 0 and 100 Enter your guess: 25 Your guess is high Enter your guess: 13 Your guess is high Enter your guess: 9 Your guess is high Enter your guess: 5 Your guess is high Enter your guess: 2 Yes, the number is 2 BUILD SUCCESSFUL (total time: 33 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
