Question: please help me solve this problem by writing the code in the java language Problem: You want to play the lottery, but not sure what

please help me solve this problem by writing the code in the java language

Problem: You want to play the lottery, but not sure what those odds mean to you. So, you decide to create an app to mock playing the lottery. You are thinking the Pick 3 is the easiest way to win.

How to play Pick 3 pick 3 numbers from 0-9 for the player's numbers, the Quick Pick Numbers. Then those numbers are compared to the Draw Numbers.

Procedure: Generate 3 random numbers, the value range is 0 9, inclusive for the Quick Pick Number

Hard code in 3 numbers (programmers choice of the 3 numbers values within the range of 0 -9) for the Draw Numbers to match against for wins.

Write the statements that will inform the Drawings winnings:

The exact order, win $250.00

Any Order, win $40.00

Otherwise, no winnings

Sample run:

Welcome to Texas Pick 3!

Let's do a quick pick and check to see if you win!

Your quick pick numbers are 9, 3, 6.

The Draw Number are 2, 7, 4.

Did you win?

Sorry - not a winner this time, better luck next Draw!

Thanks for playing Texas Pick 3!

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!