Question: (C# Programming) Create a lottery game application. Generate four random numbers, each between 1 and 10. Allow the user to guess four numbers. Compare each

(C# Programming) Create a lottery game application. Generate four random numbers, each between 1 and 10. Allow the user to guess four numbers. Compare each of the users guesses to the four random numbers and display a message that includes the users guess, the randomly determined four numbers, and amount of money the user has won as follows: Any One matching: $10 Two matching: $30 Three matching: $100 Four matching, not in order: $1000 Four matching, in exact order: $10000 No matches: $0 MAKE SURE YOUR PROGRAM CAN NOT DRAW REPEATING NUMBERS. Save the file as Lottery.cs. Hint: Random RanNumber= new Random(); Int ran1; ran1= RanNumber.Next(min,max);

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!