Write a C# program that plays a guessing game with the user. Your program should select a random number between 1 and 50 and then let the user try to guess it. The program should continue asking the user for a number until he guesses correctly. (See below for some tips on random numbers). CHALLENGE #1: Modify your program so that it only allows the user 10 guesses, and then declares them to be an inadequate guesser if they haven’t gotten it correct. Your program should output the random number chosen. CHALLENGE #2: Modify your program so that after they guess a number (or get declared inadequate, if you do Challenge #1) that it asks them if they want to play again, and responds accordingly.
Write a C# program that plays a guessing game with the user. Your program should select a random number between 1 and
50 and then let the user try to guess it. The program should continue asking the user for a number until he guesses
correctly. (See below for some tips on random numbers). CHALLENGE #1: Modify your program so that it only allows
the user 10 guesses, and then declares them to be an inadequate guesser if they haven’t gotten it correct. Your
program should output the random number chosen. CHALLENGE #2: Modify your program so that after they guess a
number (or get declared inadequate, if you do Challenge #1) that it asks them if they want to play again, and responds
accordingly.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images