Lab 9: More control structures
Write a number-guessing program.
- Make the computer pick a random number that lies between 0 and 50.
- The user can attempt 10 guesses.
- Make 10 different messages. 5 that will say that the user has won in different ways and ask the user to play again, and 5 to say that the user has lost in different ways and ask the user to play again,
- Use void functions to generate the random number, play the game (once), and generate the random message.
Save your file as lab9.cpp.