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, 21.06.2019 22:00
Signal sets company contracts to deliver one hundred 52-inch plasma high-definition television sets to a new retail customer, tuner tv store, on may 1, with payment to be made on delivery. signal tenders delivery in its own truck. tuner's manager notices that some of the cartons have scrape marks. tuner's owner phones signal's office and asks whether the sets might have been damaged as they were being loaded. signal assures tuner that the sets are in perfect condition. tuner tenders signal a check, which signal refuses, claiming that the first delivery to new customers is always for cash. tuner promises to pay the cash within two days. signal leaves the sets with tuner, which stores them in its warehouse pending its "grand opening sale" on may 15. two days later, tuner's stocker opens some of the cartons and discovers that a number of the sets are damaged beyond ordinary repair. signal claims tuner has accepted the sets and is in breach by not paying on delivery. will signal succeed on these claims? explain.
Answers: 1
question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Name the range function that would generate the following list of integers values: 0,1,2,3,4,5.
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
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
Social Studies, 25.02.2021 17:00
question
Mathematics, 25.02.2021 17:00
question
Mathematics, 25.02.2021 17:00
question
Mathematics, 25.02.2021 17:00
Questions on the website: 13722361