Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(Python) Lottery program. The program randomly generates a two-digit number, prompts the user to enter a two-digit number, and determines whether the user wins according
(Python) Lottery program. The program randomly generates a two-digit number, prompts the user to enter a two-digit number, and determines whether the user wins according to the following rules:
1. if the users input matches the lottery In the exact order, the award is $10,000.
2. if all the digits in the users input match all the digits in the lottery number, the award is $3,000.
3. if one digit in the users input matches a digit in the lottery number, the award is $1,000.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started