Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using python design a lottery system that does the following: The computer randomly generates 6 random numbers between 1 - 9 0 without repetition. The
using python design a lottery system that does the following:
The computer randomly generates random numbers between without repetition.
The user can guess the lucky number.
The user can only enter a minimum of guesses or a maximum of guesses.
The user can exit their entry either by entering Q or "Quit" and the entry automatically stops if the user enters a maximum of numbers between and without repetition.
if the user guesses one number correctly the machine prints the user guesses, the lucky numbers and says, "Sorry you guessed only one correctly.".
if the user guesses two numbers correctly the machine prints the user guesses, the lucky numbers and says, "Congratulations you guess correctly.".
if the user guesses three numbers correctly the machine prints the user guesses, the lucky numbers and says, "Congratulations you guess correctly.".
if the user guesses four numbers correctly the machine prints the user guesses, the lucky numbers and says, "Congratulations you guess correctly.".
if the user guesses five numbers correctly the machine prints the user guesses, the lucky numbers and says, "Congratulations you guessed correctly.".
if the user guesses all numbers correctly the machine prints the user guesses, the lucky numbers and says, "Congratulations you just won a Jackpot.".
NB:
Zip the file and attach it while submitting this assignment.
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