Question: In C#, in this program, the computer generates a number between 1-100 and the user should guess that number is 6 tries or less. For

In C#,

in this program, the computer generates a number between 1-100 and the user should guess that number is 6 tries or less. For each time the user gets a wrong guess the computer should tell the user if the number generated by the computer is greater or less than the user number.

Your GUI should have one textbox input. One button. A label for displaying the result, a picture box for displaying an image each time the user checks his number, and a group box containing two radio buttons that are displayed once the game is over to prompt the user if he/ she want to play again. The groupBox should not be apparent when the game is in play mode. The focus will be always on the textbox that takes the input and the enter key should be a default action that simulate the button when pressed.

Your programming should utilize if-stmts and also a switch structure. The switch structure will check which try the user is in, and take appropriate action like loading the correct picture in the picture box.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!