Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python: generation of lottery number: As you drive across one of the Washington DC monuments, there appeared to be a billboard with bold words informing

Python: generation of lottery number:

As you drive across one of the Washington DC monuments, there appeared to be a billboard with bold words informing the citizens of DC that the Powerball jackpot has risen to one of the all-time high. As you rest in your deep thoughts thinking that you have chance to win this jackpot. As an IT professional living and working in the District of Columbia area living with five other fellow roommates, who are in the same situation. As the only IT expert in this house, you decided to try your luck and to generate some pseudo-numbers to see this jackpot can be claimed by you and your fellow roommates.

Requirements:

Create one function called lotto() with no data inside the parameter area.

Inside this lotto() function o Write one loop to create the five normal Numbers + Powerball o Write a second loop to create a total of 10 Lottery tickets

No need to prompt any User for input.

You can make it fancy to include a main() to call the lotto().

Must use a python List 2 Random seed must be feed a time element.

Must use a python random class aka import random and import time

Must use a python random seed function

Regular numbers are inclusive 1 to 70, Powerball numbers are 1-25 inclusive.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions