Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with pseudocode Maria has asked you to create a program that prompts the user to enter the lower bound and the upper

I need help with pseudocode
Maria has asked you to create a program that prompts the user to enter the lower bound and the upper bound. You have decided to write pseudocode to design the program before actually developing the code. When run, the program should ask the user to guess a number. If the number guessed is lower than the random number, the program should print out a message like "Nope, too low." If the number guessed is higher than the random number, print out a message like "Nope, too high." If the number guessed is the same as the random number, print out a message like "You got it!"
Note: The output messages you include in your pseudocode may differ slightly from these samples.
Sample Output
Below is one sample output of the program, with the user input demonstrated by bold font.
Welcome to the higher/lower game, Bella!
Enter the lower bound: 10
Enter the upper bound: 30
Great, now guess a number between 10 and 30:20
Nope, too low.
Guess, another number: 25
Nope, too high.
Guess another number: 23
You got it!
Below is another sample output of your program, with the user input demonstrated by bold font.
Welcome to the higher/lower game, Bella!
Enter the lower bound: 10
Enter the upper bound: 5
The lower bound must be less than the upper bound.
Enter the lower bound: 10
Enter the upper bound: 20
Great, now guess a number between 10 and 20: 25
Nope, too high.
Guess another number: 15
Nope, too low.
Guess another number: 17
You got it!
image text in transcribed

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

Database Processing

Authors: David Kroenke

11th Edition

0132302675, 9780132302678

More Books

Students also viewed these Databases questions

Question

1 What theories are implicit in these reward systems?

Answered: 1 week ago