subject
Engineering, 06.11.2019 20:31 olejlund8073

This exercise focuses on while loops and random numbers. your program allows the user to play a game in which the program thinks of a random integer and accepts guesses from the user until the user guesses the number correctly. after each incorrect guess, you will tell the user whether the correct answer is higher or lower. your program must exactly reproduce the format and behavior of the logs in this document. the log below shows one sample execution of your program. first, the program prints an introduction in the form of a haiku. a haiku has 3 lines: one with 5syllables, the second with 7 syllables, and the third with 5 syllables. next, a series of guessing games is played. in each game, the computer chooses a random number between 1 and 100,inclusive. the game asks the user for guesses until the correct numberis guessed. after each incorrect guess, the program gives a clue about whether the correct number is higher or lower than the guess. once the user types the correct number, the game ends and the program reports how many guesses were needed

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 08:10
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 18:10
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:20
Athin walled concentric tube exchanger is used to cool engine oil from 160°c to 60°c with water that is available at 25°c acting as a coolant. the oil and water flow rates are each at 2 kg/s, and the diameter of the inner tube is 0.5 m and the corresponding value of the overall heat transfer coefficient is 250 w/m2. oc. how long must the heat exchanger be to accomplish the desired cooling? cpwater=4.187 kj/kg-candcpengine el=2.035 kj/kg·°c, oil . 120]
Answers: 1
question
Engineering, 04.07.2019 18:20
What is the heat treatment of metals? what is the benefit of it? why and how it's useful? answer in details, do not write by hand.
Answers: 3
You know the right answer?
This exercise focuses on while loops and random numbers. your program allows the user to play a game...
Questions
question
Mathematics, 31.10.2019 06:31
question
History, 31.10.2019 06:31
question
Mathematics, 31.10.2019 06:31
question
Mathematics, 31.10.2019 06:31