Question: Part 1: Random Number Game Write a segment of code that asks a user for two numbers. Generate a random number in the range between

Part 1: Random Number Game Write a segment of code that asks a user for two numbers. Generate a random number in the range between those two numbers, inclusive. Check to make sure that the lower bound is less than the upper bound. If the boundaries are incorrect. use a while loop to keep asking for correct boundaries until the user enters correct boundaries. Next, ask the user to guess what the number is. If the number guessed was wrong, reveal whether the guess was too large or too small. Use a while loop to make sure that the user can keep guessing until they guess correctly. Example: What What What That What That What That What That is the lower is the upper do you think guess is too do you think guess is too do you think guess is too do you think is correct! bound? 5 bound? 15 the number high. the number high. the number high. the number is? is? is? 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
