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.
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...
Related questions
Question
please follow the instruction and see the sample run of the program (use python language)
![Sample Run:
Welcome to Lotto Draw!
1 [Draw]
2 [Exit]
Input your choice: 1
Please input 1* unique number:
Please input 20nd unique number:
Please input 3rd unique number:
Please input 4th unique number:
Please input 5th unique number:
Please input 6th unique number:
5
10
15
20
25
60
Conditions not met. Please input 6 unique numbers
Please input 1" unique number:
Please input 2nd unique number:
Please input 3rd unique number:
Please input 4th unique number:
Please input 5th unique number:
Please input 6th unique number:
5
10
15
20
25
60
Conditions are not met. Please input 6 unique numbers
Please input 1" unique number:
Please input 20d unique number:
Please input 3rd unique number:
Please input 4th unique number:
Please input 5th unique number:
Please input 6th unique number:
10
15
20
25
30
Unique numbers are accepted.
Winning numbers:
10 20 40 45 46 49
Sorry you only guessed 2 winning numbers.
Welcome to Lotto Draw!
1 [Draw]
2 [Exit]
Input your choice: 1](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ff2b6960f-e720-452e-9516-5c8b02f2ac91%2F46b403ee-279c-4bba-a4ab-48f602d87e87%2Firckulq_processed.png&w=3840&q=75)
Transcribed Image Text:Sample Run:
Welcome to Lotto Draw!
1 [Draw]
2 [Exit]
Input your choice: 1
Please input 1* unique number:
Please input 20nd unique number:
Please input 3rd unique number:
Please input 4th unique number:
Please input 5th unique number:
Please input 6th unique number:
5
10
15
20
25
60
Conditions not met. Please input 6 unique numbers
Please input 1" unique number:
Please input 2nd unique number:
Please input 3rd unique number:
Please input 4th unique number:
Please input 5th unique number:
Please input 6th unique number:
5
10
15
20
25
60
Conditions are not met. Please input 6 unique numbers
Please input 1" unique number:
Please input 20d unique number:
Please input 3rd unique number:
Please input 4th unique number:
Please input 5th unique number:
Please input 6th unique number:
10
15
20
25
30
Unique numbers are accepted.
Winning numbers:
10 20 40 45 46 49
Sorry you only guessed 2 winning numbers.
Welcome to Lotto Draw!
1 [Draw]
2 [Exit]
Input your choice: 1
![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.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ff2b6960f-e720-452e-9516-5c8b02f2ac91%2F46b403ee-279c-4bba-a4ab-48f602d87e87%2Fwqly98e_processed.png&w=3840&q=75)
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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps

Recommended textbooks for you

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY