Question: Prompt For this assignment, you will be designing pseudocode for a higher / lower game program. The higher / lower game program uses similar constructs

Prompt
For this assignment, you will be designing pseudocode for a higher/lower game program. The higher/lower game program uses similar constructs to the game you will design and develop in Projects One and Two.
1. Review the Higher/Lower Game Sample Output PDF for more detailed examples of this game. As you read, consider the following questions:
- What are the different steps needed in this program? How can you break them down in a way that a computer can understand?
- What information would you need from the user at each point (inputs)? What information would you output to the user at each point?
- When might it be a good idea to use "IF" and "IF ELSE" statements?
- When might it be a good idea to use loops?
2. Create pseudocode that logically outlines each step of the game program so that it meets the following functionality:
- Prompts the user to input the lower bound and upper bound. Include input validation to ensure that the lower bound is less than the upper bound.
- Generates a random number between the lower and upper bounds
- Prompts the user to input a guess between the lower and upper bounds. Include input validation to ensure that the user only enters values between the lower and upper bound.
- Prints an output statement based on the guessed number. Be sure to account for each of the following situations through the use of decision branching:
- What should the computer output if the user guesses a number that is too low?
- What should the computer output if the user guesses a number that is too high?
- What should the computer output if the user guesses the right number?
- Loops so that the game continues prompting the user for a new number until the user guesses the correct number.
3. OPTIONAL: If you would like to practice turning your designs into code, check out the optional 9.1 LAB: Higher/Lower Game in zyBooks.
Prompt For this assignment, you will be designing

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 Programming Questions!