![sarahppalenz9519](/avatars/24154.jpg)
sarahppalenz9519
10.09.2019 •
Computers and Technology
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.
Solved
Show answers
More tips
- F Family and Home How to Remove Tar Stains: Tips and Recommendations from Experts...
- H Health and Medicine Novomin: What is it and how to use it?...
- P Philosophy Unbelievable stories of encounters with otherworldly forces...
- L Leisure and Entertainment How to Choose the Perfect Gift for Men on February 23rd?...
- H Health and Medicine How to Treat Whooping Cough in Children?...
- H Health and Medicine Simple Ways to Lower Cholesterol in the Blood: Tips and Tricks...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
- A Art and Culture When Will Eurovision 2011 Take Place?...
Answers on questions: Computers and Technology
- C Computers and Technology Python pseudocode: Can anyone please help me please? I’m so desperate for the answer....
- C Computers and Technology Why do you need to install application program/software in your computer?...
- M Mathematics Solve as soon as possible!...
- G Geography How has citizenship expanded since the founding of our country? What positive trends can you see happening over time?...
- M Mathematics Need help with number 5 please and thank you...
- B Biology Identify what type of mutation occurred:...
- M Mathematics 5x - 10y = 20 y = -2x + 6 are they perpendicular , parallel, or niether?...
- C Chemistry 41. Which element is a mixture you can separate? A. Cake B. Tacos C. Pencil D. Soda...
- H History Analyze the map below and answer the question that follows Image courtesy of NASA A) Egypy B) Ethiopia C) sudan D) Libya...
- M Mathematics Can someone please help...
Ответ:
what kind of kahoot is it