Question: ( PLEASE write in C + + ) Write a program that allows the user to guess a number between 1 and 5 0 .
PLEASE write in CWrite a program that allows the user to guess a number between and 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.
Write a program that plays a simple dice game between two users. The program should use a loop to do the following times: generate random numbers for each player
simulating rolling 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:
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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
