Question

Your Task

your

Using the sample output below as

guide, write a menu-driven Illinois State Lotto program that will allow a user to generate six Lotto

numbers (random integers 1-50) and save them to a file. Lotto numbers may be entered manually

or auto-generated by Quick Pick.

SAMPLE PROGRAM BEHAVIOR (User input is highlighted to distinguish from output)

Welcome to Illinois State Lotto!

1) Enter your numbers manually

2) Auto-generate with Quick Pick

Enter your choice (1 or 2): 1

Enter six numbers 1 through 50 (example: 2 18 36 41 47 49): 6 11 25 32 41 48

Your lotto picks:

6 11 25 32 41 48

Save to file? (y/n): y

Picks saved.

Play another round of numbers? (y/n): y

Welcome to Illinois State Lotto!

1) Enter your numbers manually

2) Auto-generate with Quick Pick

Enter your choice (1 or 2): 2

Your lotto picks:

28 49 38 11 25 6

Save to file? (y/n): y

Picks saved.

Play another round of numbers? (y/n): n

Question image 1