Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description: A Backwards Guessing Game For this assignment, you will be a making a guessing game with a twist. You will play the role of

Description:

A Backwards Guessing Game

For this assignment, you will be a making a guessing game with a twist. You will play the role of the computer, and the computer will try to guess the number. You will think of a number (you dont have to read it in as input) between 1 and 100. You will create a loop that runs 5 times. In this loop, the computer will try to guess the number in the range it knows is valid (to start, the range will be 1-100) and will print out the guess on the screen. Next, it will ask you if you its guess is correct. You will respond with "High", "Low", or "Correct". If it is not correct, the computer will adjust its range and loop around to guess again. If it is correct, the computer will print out a happy message and exit. If the computer has not guessed correctly after 5 tries, it will print out a sad message and exit.

Sample Output (User-Typed Information Is Bolded/Underlined):

Time to play Guessing Game!

I think the number is 27.

Howd I do? Low

I think the number is 92.

Howd I do? High

I think the number is 58.

Howd I do? Correct

Yes! I won!

To Do:

Write an algorithm in Pseudocode to implement the Guessing Game Program.

I'm having trouble writing the pseudocode for this computer science assignment

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions

Question

Is having a positive self-concept really all that important?

Answered: 1 week ago