Question: Write program for this using C++ code Ceate a program, NumberGuessingGamethat will make the the way you will help the us ner guess a random

 Write program for this using C++ code Ceate a program, NumberGuessingGamethat
Write program for this using C++ code

Ceate a program, NumberGuessingGamethat will make the the way you will help the us ner guess a random nuambser betwoon 1 and 100 (nchnive) The game won't ond unitil the usor gaosses the corect number, but along Until the user guesses the secrot numbor Obtain a guess IH it's highor than the numbor, tell the user I is lower than the number, tel the user "they poss the runter, the game stops and they are prompted to emer play agai, or exit After thay win Congratulate them Tell them how many guesses it took Tell what their closest incorrect guess was I multiple guesses are equally close, display the most recent one Use do while loops in your program Sample run (where the secret number is 73) Welcome to the sumber guessing gae Guess a number: 45 Sorry, you guess is too low Guess a number: 99 Sorry, your guess is too high. Guess a number 74 Sorry, your guess is too high. Guess a number: 72 Sorry, your guess is too low Guess a number: 73 You win You guessed the secret number after 5 guess(es). Your closest guess was 72 Would you like to play again? (y)

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