Lee C.

asked • 09/21/22

could not work out this problem

A user is Asked to guess a random number (0-999) generated by the computer at the beginning of the program if the users guess is too high or too low, she/he will get feedback from the computer. the user will repetitively guess the

number until the correct answer is guessed. At the end of each game, the user will be asked play

another game and if the user enters'y' or 'Y, the program repeats from the beginning

To Do:

the program generates a random number (0..999)

2. Prompts the user to guess the number between 0 and 999

The program displays one of three responses -greater, less, or correct.

4. Repeat steps 1- 3 until the user enters the corect answer

5. The correct answer should be displayed with the number of tries.

6. Next, ask the user to play the game again or not. if yes, go back to the first step.

1 Expert Answer

By:

Calvin D. answered • 09/26/22

Tutor
5 (233)

Computer Scientist & Cyber Threat Hunter @ US Air Force

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.