Create pseudocode that logically outlines each step of the game program so that it meets the following
Fantastic news! We've Found the answer you've been seeking!
Question:
- 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.
Related Book For
Systems Analysis And Design
ISBN: 978-1119496489
7th Edition
Authors: Alan Dennis, Barbara Wixom, Roberta M. Roth
Posted Date: