Guessing Game Application Create the Guessing Game Application. The application should receive two integers from the user, namely minimum and maximum and generate a random integer from minimum through...


Intro to Python Programming:


Guessing Game Application<br>Create the Guessing Game Application. The application should receive two<br>integers from the user, namely minimum and maximum and generate a random<br>integer from minimum through maximum, inclusive. It then should give the user<br>five chances to guess the integer. Each time the user makes a guess, the<br>application should display one of two messages:

Extracted text: Guessing Game Application Create the Guessing Game Application. The application should receive two integers from the user, namely minimum and maximum and generate a random integer from minimum through maximum, inclusive. It then should give the user five chances to guess the integer. Each time the user makes a guess, the application should display one of two messages: "Guess higher" or "Guess lower". If the user guesses the generated number the application should let her/him know and also display the number of chances that were required for the user to guess the number. If the user is not able to guess the number in five attempts the application should display "Game over!" and indicate the correct number. The program output should be formatted as shown in the Sample Run. Note: Python provides a function for generating a random integer within a given range. The function randint (minimum, maximum) which is defined in the random module, returns a random integer that is between minimum and maximum, including the bounds themselves. Before you can use the function, you need to import it as follows at the beginning of your code: from random import randint
SAMPLE RUN<br>Enter a small positive number: 3<br>Enter a large positive number: 6<br>Enter your guess: 3<br>Guess higher<br>Enter your guess: 5<br>Guess higher<br>Enter your guess: 6<br>You've got it in 3 tries!<br>Enter a small positive number: 24<br>Enter a large positive number: 89<br>Enter your guess: 3<br>Guess higher<br>Enter your guess: 88<br>Guess lower<br>Enter your guess: 45<br>Guess higher<br>Enter your guess: 60<br>Guess higher<br>Enter your guess: 79<br>Game over! Number is 82<br>Enter a small positive number: 11<br>Enter a large positive number: 19<br>Enter your guess: 15<br>Guess higher<br>Enter your guess: 19<br>Guess lower<br>Enter your guess: 18<br>Guess lower<br>Enter your guess: 17<br>You've got it in 4 tries!<br>

Extracted text: SAMPLE RUN Enter a small positive number: 3 Enter a large positive number: 6 Enter your guess: 3 Guess higher Enter your guess: 5 Guess higher Enter your guess: 6 You've got it in 3 tries! Enter a small positive number: 24 Enter a large positive number: 89 Enter your guess: 3 Guess higher Enter your guess: 88 Guess lower Enter your guess: 45 Guess higher Enter your guess: 60 Guess higher Enter your guess: 79 Game over! Number is 82 Enter a small positive number: 11 Enter a large positive number: 19 Enter your guess: 15 Guess higher Enter your guess: 19 Guess lower Enter your guess: 18 Guess lower Enter your guess: 17 You've got it in 4 tries!
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here