Question: Objective: To create a C++ Console Application that utilizes selection control to create the High Low Guessing Game. General Specification: The High Low Guessing Game

Objective: To create a C++ Console Application that utilizes selection control to create the High Low Guessing Game.

General Specification: The High Low Guessing Game should begin by prompting the user for his or her guess to a secret number. The computer should generate a secret number using the rand() random number function.

"I'm thinking of a number between 1 and 100."

For each guess the computer should display an appropriate message, too low, or too high.

Enter Guess: 60

Too low

Enter Guess: 85

Too high

The computer should continue giving High/Low hints until the secret number is guessed. The computer should keep track of how many guesses it took to guess the secret number.

"You got it in 5 guesses"

The game should conclude with one of three custom messages based on multiple alternative selection control. For example -

[1 to 4 guesses] You are an above average player. You must be psychic.

[5 to 7 guesses] You are an average player. Keep practicing.

[More than 7 guesses] You are a below average player. Don't quit your day job.

Your application should conclude with a query-control loop that asks if the player wants to 'Play Again? Y/N'

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!