subject
Computers and Technology, 17.07.2019 02:10 jeny89

Write a program that generates a random number between 5 and 15 and asks the user to guess what the number is. if the user’s guess is higher than the random number, the program should display too high. try again. if the user’s guess is lower than the random number, the program should display too low, try again. the program should use a loop that repeats while keeping a count of the number of guesses the user makes until the user correctly guesses the random number. then the program should display the number of guesses along with the following message congratulations. you figured out my number. suggest that you also give the user the opportunity to play the game again or quit.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 22:20, gingerham1
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
image
Computers and Technology, 24.06.2019 00:20, talyku843
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
image
Computers and Technology, 24.06.2019 00:40, ndurairajownkpq
What social factors affect your health
Answers: 3
image
Computers and Technology, 24.06.2019 02:00, arubright177
Write an expression that will cause the following code to print "equal" if the value of sensorreading is "close enough" to targetvalue. otherwise, print "not equal". ex: if targetvalue is 0.3333 and sensorreading is (1.0/3.0), output is:
Answers: 1
You know the right answer?
Write a program that generates a random number between 5 and 15 and asks the user to guess what the...

Questions in other subjects:

Konu
Mathematics, 02.02.2022 02:00
Konu
Health, 02.02.2022 02:00