Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question1: using sage math The lottery game Mega Millions is played by selecting 5 unique numbers in range 1 - 70 and an additional number,

Question1: using sage math

The lottery game Mega Millions is played by selecting 5 unique numbers in range 1 - 70 and an additional number, called mega ball, separately selected in range 1 - 25. Write a Sage function called MegaMillions() which can simulate a single Mega Million game drawing as described above. That is, the function returns a list in form [a,b,c,d,e,[m]], where a,b,c,d,e are the unique random integers, selected in range 1 - 70 and m (note the double list) is the mega ball selected in range 1 - 25. Make the numbers a,b,c,d,e appear sorted in the list, such that a < b < c < d < e. As part of your answer include a sample lottery drawing below the function as a Sage comment.

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

What is the cycle of intimate partner abuse?

Answered: 1 week ago

Question

c. Will leaders rotate periodically?

Answered: 1 week ago

Question

b. Will there be one assigned leader?

Answered: 1 week ago