Question
!MUST BE ABLE TO CALCULATE AND DISPLAY NEW ELIGIBLE RANGES! Write a guessing game program that generates a random integer between 1 and 10000, inclusive.
!MUST BE ABLE TO CALCULATE AND DISPLAY NEW ELIGIBLE RANGES!
Write a "guessing game" program that generates a random integer between 1 and 10000, inclusive. The program should prompt the user to enter a guess. For each guess, the program will output HIGHER if the user's guess is lower than the target, LOWER if the user's guess is higher than the target, or WINNER if the user guesses the target. Each time the program prompts the user for a new guess, it should calculate and display the eligible range of values. Write a program in JAVA and design a flowchart
!MUST BE ABLE TO CALCULATE AND DISPLAY NEW ELIGIBLE RANGES!
First it would say "Guess a number between 1 and 10000" if the guess was 5000 and the number was higher, then the new range would say "Guess a number between 5000 and 10000" and so on.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started