Question: Write the opener which is a C + + program that: chooses a random integer between 1 and 1 0 and assigns that value to

Write the opener which is a C++ program that:
chooses a random integer between 1 and 10 and assigns that value to a variable called answer
prompts the user for an integer between 1 and 10
stores the user's input in an integer variable called guess
displays the user's guess and the answer to the console.
Modify your opener:
The program chooses a number between 1 and 10.
The user guesses a number.
If that guess is equal to the number, print the message, "Winner, winner, chicken dinner!"
If the guess is lower than the number, print the message, "Rise up, my friend, your guess was too low."
If the guess is higher than the number, print the message, "Get low, get low, get low, your guess was too high."
No matter what they guess, print out the answer and the guess at the end.
give me the answer as a C++ program

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