C# WindowsFormApp help with code.
For this assignment you are to create a random number guessinggame. The computer will pick aninteger number between 0 and 10. If the user’s guess is too high, amessage will display telling them ofthe result. Likewise, if their guess is too low, a message willinform them to enter a higher number. If theuser enters the correct answer, they will be congratulated andgiven the opportunity to play again. Acounter will also be used to tell the user the number of tries ittook them before guessing the correctanswer.When the user selects the Begin button, the following processeswill occur. A random number will be selectedThe .Enabled property of the Submit button will be set toTrueThe .Enabled property of the Begin button will be set toFalseThe cursor will be placed into the TextBoxThe counter for the number of guesses will be set to 0
Below are screenshots of the working project. I just need thecoding portion, thank you.
Guessing Game Guess The Number Enter your guess (0-10): Begin Number of tries: Play Again Submit X
Guessing Game Guess The Number Enter your guess (0-10): Bin Number of tries: 0 X
Guessing Game Guess The Number Enter your guess (0-10): Number of tries: Submit 5 0 X
Guessing Game Guess The Number Enter your guess (0-10): Very good Number of tries: Play Again 1 5 0 X
Guessing Game Guess The Number Enter your guess (0-10): Too high Number of tries: Submit 8 X
Guessing Game Guess The Number Enter your guess (0-10): Too low Number of tries: Submit 1 X
C# WindowsFormApp help with code. For this assignment you are to create a random number guessing game. The computer will
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am