Lab Exercises
You are interested in analyzing the frequency of numbers selected for the Powerball lottery. You have downloaded the previous year's Powerball numbers which are saved in a text file called pb_2014.txt and each record in the file has the following format:
01/01/14 15 24 40 48 52 23 x PP
01/04/14 19 20 37 41 58 14 x PP
01/08/14 10 28 39 47 58 22 x PP
01/11/14 10 15 33 48 54 34 x PP
Unfortunately this is an incompatible file format for the program you are using to analyze the frequency. The correct record file format needed by the program is shown below:
15 24 40 48 52 23
19 20 37 41 58 14
10 28 39 47 58 22
10 15 33 48 54 34
Write a program to convert the pb_2014.txt file into the required file format shown above saving the new format to the file powerball.txt.
Copy and paste your program into your word document. Copy and paste the first 10 records of each file directly below your program.