Lottery Draw Application (Python Program) I. Create an application that simulates a 6/49 Lottery Draw with the following objectives: 1. The program must have 2 options in its main menu [Draw] - The program will move to asking 6 unique numbers from the user • [Exit) - Application should terminate After displaying the result of the draw, the program must return to main menu 2. The program must ask 6 unique numbers from the user. • The program must only accept numbers between 1-49. The program must check for repetition in numbers inputted by the user • The program must continue asking for 6 unique numbers until the conditions above are satisfied • The accepted numbers must be stored in separate variables 3. The program must generate 6 unique winning numbers o No repetition of generated random number o Generated winning number must be between 1-49 o The winning numbers must be stored in separate variables 4. The program must check for matches between the accepted numbers from the user and the generated winning numbers, and should display the corresponding prize
6/49 Lottery Draw Application (Python Program)
I. Create an application that simulates a 6/49 Lottery Draw with the following objectives:
1. The program must have 2 options in its main menu [Draw] - The program will move to asking 6 unique numbers from the user
• [Exit) - Application should terminate After displaying the result of the draw, the program must return to main menu 2. The program must ask 6 unique numbers from the user.
• The program must only accept numbers between 1-49. The program must check for repetition in numbers inputted by the user
• The program must continue asking for 6 unique numbers until the conditions above are satisfied
• The accepted numbers must be stored in separate variables
3. The program must generate 6 unique winning numbers o No repetition of generated random number o Generated winning number must be between 1-49 o
The winning numbers must be stored in separate variables 4.
The program must check for matches between the accepted numbers from the user and the generated winning numbers, and should display the corresponding prize should they win the lottery:
• 0- Sorry, you guessed 0! •
1- Sorry you only guessed 1 winning number!
• 2- Sorry you only guessed 2 winning numbers!
• 3- Sorry you only guessed 3 winning numbers!
• 4-Congratulations you guessed 4 winning numbers and you win 10,000.00 cash!
• 5- Congratulations you guessed 4 winning numbers and you win 100,000.00 cash!
• 6-Congratulations you won the mega jackpot worth 5,000,000.00 !
You cannot use any available data structure, only variables are accepted. You can only use the module Random, no other module can be called. Use the if conditional statement to check for the uniqueness of code Use any looping statement.
Step by step
Solved in 2 steps with 1 images