Hw5write the code to play a number guessing


HW#5:Write the code to play a number guessing game.

Allow the user to select a lower and upper range to guess between. Ask the user how many guesses they want to guess the number.

Generate a Random Number between the min and max values. Do not show the number to the user. Use a loop that will execute as many times as the user wants to guess. Inside the loop, use an input box to prompt the user to enter their guess. After each value is input, evaluate if the guess is too high, too low or just right. Count the number of guesses. If the user guesses the number - stop the game and tell the user how many guesses it took to guess the answer.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Hw5write the code to play a number guessing
Reference No:- TGS0669403

Expected delivery within 24 Hours