Question: ONLY IN PYCHARM!! Create an application that asks the user to guess a random number between X and Y; where X and Y are configurable.

ONLY IN PYCHARM!!

Create an application that asks the user to guess a random number between X and Y; where X and Y are configurable.

The program should ask the user if they would like to play again. Keep track of the number of sessions.

Programming Details:

Display instructions to the user explaining the program.

Hello, what is your name?

Ask the question: Hi >, I am thinking of a number between ___ and ___.

Guess the number: 10

Indicate whether the number is too high or low

Your guess is too high. Try again: 5

Indicate whether the number is too high or low

Your guess is too low. Try again: 7

You guessed right Bob! It took you 3 tries!

Ask the user if they want to re-run the program

Most importantly, your solution should demonstrate your knowledge of EACH OF the following topics:

o import statements

o Modules o while statements

o Conditions / Comparisons

o Data Types o Making Decisions (switch/case, if/else, etc.)

o Repeating Instructions (while, for, etc.)

Extra credit is possible for creativity There should be a counter displaying the session number. Be creative outputting the High/Low values. Maybe keep track of what numbers were too high and too low and show them appropriately. Hint: Think of sorted list

ONLY IN PYCHARM!! Create an application that asks the user to guess

Create an application that asks the user to guess a random number between X and Y; where X and Y are configurable. The program should ask the user if they would like to play again. Keep track of the number of sessions. Programming Details: Display instructions to the user explaining the program. Hello, what is your name Ask the question Hi

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!