Question: C# Programming: How do I code this please , do I used the Do-Loops for this ? 1. Initializes a random number (see code fragment

C# Programming: How do I code this please , do I used the Do-Loops for this ?

C# Programming: How do I code this please , do I used

1. Initializes a random number (see code fragment below) to a value between 1 and 10, inclusive. 2. Repeatedly asks the user to guess what the number is until the number is guessed. 1. If the guess is higher than the number, tell the user their guess is too high and that they should guess again. 2. If the guess is lower than the number, tell the user their guess is too low and that they should guess again. 3. If the guess is equal to the number, tell them: 1. That their guess was correct, and 2. How many guesses they made. Here's the code to create a random number: Random RandomClass = new Random(); int randomNumber; randomNumber = RandomClass.Next(MIN, MAX); //random number will be >= MIN and

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!