Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Here is the link to the needed txt file https://www.dropbox.com/s/c5gk1rtree4lole/pbnumbers.txt?dl=0 This is a Java program 17. Lottery Statisties To play the PowerBall lottery, you buy
Here is the link to the needed txt file https://www.dropbox.com/s/c5gk1rtree4lole/pbnumbers.txt?dl=0
This is a Java program
17. Lottery Statisties To play the PowerBall lottery, you buy a ticket that has five numbers in the range of 1-69, (You can pick the numbers yourself, or n let the ticket machine randomly pick them for you.) Then, on a specified date, yo match the first five winning numbers in any order, and your PowerBall number matches the winning Power Ball 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 chapter, you will find a file named pbnumbers.txt containing the winning lottery numbers that were selected between February 3, 2010 and May 11, 2016 (the file contains 654 sets of winning numbers). Here is an example of the first few lines of the file's contents: 17 22 36 37 52 24 4 22 52 54 59 04 05 08 29 37 38 34 10 14 30 40 51 01 07 08 19 26 36 15 and so on... Each line in the file contains the set of six numbers that were select numbers are separated by a space, and the last number in each line is the PowerBall um for that day. For example, the first line in the file shows the numbers for February 3,2010 which are 17, 22, 36, 37, 52, and the PowerBall number 24 ed on a given date. T 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 Powerbll number 1-26
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