Question: using the file pbnumbers.txt, for the exercise below. Add a simple NJ Lottery Game logo of choice using turtle graphics 13. PowerBall Lottery To play

using the file "pbnumbers.txt", for the exercise below. Add a simple NJ Lottery Game logo of choice using turtle graphics

using the file "pbnumbers.txt", for the exercise below. Add a simple NJ

13. PowerBall Lottery To play the PowerBall lottery, you buy a ticket that has five numbers in the range of 1-60 and a "PowerBall" number in the range of 1-26. ( You can pick the numbers yourself, or you' can let the ticket machine randomly pick them for you.) Then, on a specified date, a winning set of numbers is randomly selected by a machine. If your first five numbers match the fire live winning numbers in any order, and your PowerBall number matches the winning Pow erBall number, then you win the jackpot, which is a very large amount of money. If your numbers match only some of the winning numbers, you win a lesser amount, depending on how many of the winning numbers you have matched. In the student sample programs for this book, you will find a file named ponumbers. txt containing the winning Powerball numbers that were selected between February 3, 2010 and May 11, 2016 (the file contains 654 sets of winning numbers). Figure 8-6 shows an example of the first few lines of the file's contents. Each line in the file contains the set of six numbers that were selected on a given date. The numbers are separated by a space, and the last number in each line is the PowerBall number for that day. For example, the first line in the file shows the numbers for February 3, 2010, which were 17, 22, 36, 37, 52, and the PowerBall number 24. Programming Exercises 437 Figure 8-6 The pbnumbers.txt file pbnumbers,txt - Notepad O File Edit Format View Help X 17 22 36 37 52 24 14 22 52 54 59 04 05 08 29 37 38 34 10 14 30 40 51 01 07 08 19 26 36 15 13 27 37 41 54 32 04 17 35 50 57 12 Ln 1, Col 1 Write one or more programs that work with this file to perform the following: . Display the 10 most common numbers, ordered by frequency . Display the 10 least common numbers, ordered by frequency . Display the 10 most overdue numbers (numbers that haven't been drawn in a long time), ordered from most overdue to least overdue . Display the frequency of each number 1-69, and the frequency of each Powerball number 1-26

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!