subject
Computers and Technology, 10.09.2019 17:10 krayag

If the user's guess is higher than the random number, the application should display, 'too high! ' if the user's guess is lower than the random number, the application should display, 'too low! ' if the user's guess is more than 10 higher or 10 lower than the random number, the application should display, 'way too high! ' or 'way too low! ' the message that's displayed when the user gets the number should vary depending on the number of guesses. for example: number of guesses message < =3 great work! you are a mathematical wizard. > 3 and < =7 not too bad! you've got some potential. > 7 what took you so long? maybe you should take some lessons. when the user guesses a number, the application should only accept numbers from 1 to 100. when the user responds to the try again? prompt, the application should only accept a value of y or n . if the user enters invalid data, the application should display an appropriate error message and prompt the user again until the user enters valid data. the code that's used to validate data should be stored in separate methods. for example: public static double getdoublewithinrange(scanner sc, string prompt, double min, double max) public static int getintwithinrange(scanner sc, string prompt, int min, int max) the code that's used to run the application should also be stored in separate methods. use the random() method of the java. lang. math class to generate a random number.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 10:30
How would you categorize the software that runs on mobile devices? break down these apps into at least three basic categories and give an example of each.
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
1. which of the following statements are true about routers and routing on the internet. choose two answers. a. protocols ensure that a single path between two computers is established before sending packets over it. b. routers are hierarchical and the "root" router is responsible for communicating to sub-routers the best paths for them to route internet traffic. c. a packet traveling between two computers on the internet may be rerouted many times along the way or even lost or "dropped". d. routers act independently and route packets as they see fit.
Answers: 2
question
Computers and Technology, 23.06.2019 17:10
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi,be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
question
Computers and Technology, 24.06.2019 02:00
Which steps will open the system so that you can enter a question and do a search for
Answers: 1
You know the right answer?
If the user's guess is higher than the random number, the application should display, 'too high! ' i...
Questions
question
Mathematics, 10.02.2020 03:11
question
Mathematics, 10.02.2020 03:11
question
English, 10.02.2020 03:11
question
French, 10.02.2020 03:12
question
Mathematics, 10.02.2020 03:12
Questions on the website: 13722367