make a python program (please see images for instructions and sample run)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Topic Video
Question

make a python program (please see images for instructions and sample run)

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.
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
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
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education