Question: (4) While Loops Create a java program that asks one user for a number(integer) between 0-100 (inclusive). If they do not give a number between
(4) While Loops Create a java program that asks one user for a number(integer) between 0-100 (inclusive). If they do not give a number between that keep asking until they do. Then ask another user to guess the number (you can print out a bunch of newlines to hide user 1's number. ninlnininin). The program should tell them if they are high or low and keep doing so until they get the right answer. User 1: Enter a number [0-100]: 500 User1: Must enter between [0-100]: 10 Userl: Must enter between [0-100] 70 User2: Guess User 's Number: 50 Too Low, guess higher User2: Guess User 1's Number: Too High, guess lower User2: Guess User 1's Number: 70 You got it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
