Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(C# Programming)Create a lottery game application. 1.Generate four random numbers, each between 1 and 10.(Make sure they are displayed for user to see) 2.Allow the

(C# Programming)Create a lottery game application.

1.Generate four random numbers, each between 1 and 10.(Make sure they are displayed for user to see)

2.Allow the user to guess four numbers.

3.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

4.MAKE CERTAIN THAT RANDOM NUMBERS GENERATED CAN NOT BE SAME AS OTHER 3 RANDOM NUMBERS.(IN OTHER WORDS NO REPEATING NUMBERS)

5. Display message on how many numbers match(if any) and display either winning message or loss message.

Hint: Random RanNumber= new Random(); Int ran1; ran1= RanNumber.Next(min,max);

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions