6/49 Lottery Draw Application (Basic Project) 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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Using python language, make a program (refer to the image).

6/49 Lottery Draw Application (Basic Project)
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.
Transcribed Image Text:6/49 Lottery Draw Application (Basic Project) 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.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY