Project Help

Create a program that will play a guess-my-number game with the user. It should repeat until the user chooses to quit

Create a new source file called guess.

The following statement must occur once at the beginning of main to seed the random number generator. It must NOT occur in a loop:
srand(time(NULL)); //NULL must be all capitals
Create an appropriate variable that will hold a persons name and two that will hold random, positive whole numbers up to 100.

Write a statement that prompts the user to enter their name and then use their name when informing them that they will have 6 chances to guess a random number between 1 and 100. Also let them know if their guess is high or low.

<your variable name> = rand() will put a random number in your variable. You must figure out how to make it between 1-100 (Hint: modulus).
http://www.cplusplus.com/forum/general/59763/

this isn't a homework service!
Topic archived. No new replies allowed.