Question: ( PLEASE write in C + + ) Write a program that allows the user to guess a number between 1 and 5 0 .

(PLEASE write in C++)Write a program that allows the user to guess a number between 1 and 50. The program should generate a random number and ask the user to guess the number. If the user's
guess is lower than random number, the program displays "Too low. Guess again." If the user's guess is higher than random number, the program displays "Too high. Guess
again." Use a loop to keep asking for another number, until the user guesses the random number correctly. The program also should keep a count of the number of guesses.
Include a loop that lets the user repeat the program until the user says she or he is done.
8.2
Write a program that plays a simple dice game between two users. The program should use a loop to do the following 10 times: generate 2 random numbers for each player
simulating rolling 2 dice. The player rolling the same numbers will get a point. At the end, the program displays the points for each player and announces the winner.
Include a loop that lets the user repeat the program until the user says she or he is done.
Sample dialogue:
Before submitting, check for following:
-5 lines of comments
-Code lineup
-Indentation
-meaningful names for variables
-description to user
-add comments
Place both cpp files into a folder. Compress the folder and submit it.
( PLEASE write in C + + ) Write a program that

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!