CS 131 PROGRAMMING ASSIGNMENT 12 Rewrite assignment 8 so that the program reads the turnstile data into two arrays, number and receipts, where the first array stores the turnstile number and the second stores the sum of the receipts for that turnstile. E.g. with input file: 112 4 5 7 -1 302 1 1 1 1 -1 234 8 9 2 8 -1 number[0] would be 112, receipts[0] would be 16... Steps 1-3 (18 points) 1. Read the data from a file. 2. Print the results. TURNSTILE RECEIPTS 112 16 302 4 234 27 3. Print the number of the turnstile with the highest number of receipts. Do this by examining the arrays, not by checking as the data is read. 4 (5 points). Sort the data by increasing turnstile number and print the results: TURNSTILE RECEIPTS 112 16 234 27 302 4 Use at least 4 functions: one for reading the data, one for finding the highest turnstile one for sorting the arrays, and one for printing the array pairs. 5. (2 points) Assume that each of the receipts is a number between 0 and 5. Include a segment to count the number of times each digit appears in the data. Print a bar chart for the digit count (see sample output). You will need to add a counting array to the parameters in the function that reads the data. E.g. with input file: 112 4 5 2 -1 302 1 1 1 1 -1 234 3 3 2 0 -1 the output for this part would be Value Occurences 0 * 1 **** 2 ** 3 * 4 * 5 *