Part 1: Goal: implement a game called capture the number Game Rules: The game picks a random
Question:
Part 1: Goal: implement a game called capture the number Game Rules: The game picks a random number between 1 and 100 inclusive. You pick a range by giving a lower bound and an upper bound. The game makes sure that your range is legal (lower bound is less than upper bound and that the size of the range is less than or equal to 32). If the number is in your range (inclusive) the game shows the number and tells you that you win; otherwise the game shows the number and tells you that you lose. Do all work in a file called CaptureTheNumber.java. Part 2: Use the additional variables int rangeSize = 32; int chance = 0; and make the following modifications to CaptureTheNumber: Put the code that you wrote in a while loop with condition chance less than 2 change the range size check to use rangeSize instead of 32 change the win code to break out of the while loop after displaying the win message change the lose code -to tell the use they get a second chance, -divide rangeSize by two, - whether the random number is below or above their range -and increment chance Part 3: Change the code so that the while loop runs until rangeSize is zero. Submit: Submit only your final CaptureTheNumber.java file.