Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# Assignment: Write a program that generates a random number, between 11 and 35, inclusive. Instruct the user to guess the random number that the

C# Assignment:

Write a program that generates a random number, between 11 and 35, inclusive. Instruct the user to guess the random number that the computer has thought of and be sure to tell the user the numbers to guess are 11 to 35, inclusive. Let the user have 4 tries.

Create a Label, a TextBox (for user input) and a Display label. Put all three of them inside a GroupBox. Create 4 similar GroupBoxes. Change the Visible option to False for the 3 GroupBoxes except for the 1st Groupbox. The next GroupBox should only be visible when the user enters the incorrect answer in the previous GroupBox.

Tell the user each time in a Display label, next to their guess whether their guess is too low or too high or correct. Let the user keep guessing until they get it right or until they have tried 4 times.

There should be 3 rounds in a game, each with 4 tries. Track score between the computer and the user and let the user play another round until they or the computer get to a score of 3. Display the score on every new round. The first player (user or computer) to win 3 rounds wins the game. At that point, the only thing that should work will be an Exit Button and a Start Over Button.

Create a Message Label at the bottom. Use it to give more detailed error info to the user. When there is no error, it just says Enter a number from 11 to 35.

Save the scores of each winner in a text file.

I need help with this assignment. Attached is the screenshot of the design.

image text in transcribed

a Gussing Game Guess the Random Number Game Human: Computer: Guess #1 : Guess #2: Guess #3: Guess #4: Enter Guess Start Over

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago