Question: Java programming (BlueJ) please and thank you. 13a: 72 34 86 95 47 46 36 20 41 74 67 54 74 18 56 3 85
Java programming (BlueJ) please and thank you.


13a:
72 34 86 95 47 46 36 20 41 74 67 54 74 18 56 3 85 90 26 27 88 26 61 56 97 98 44 35 21 29 15 43 10 5 68 60 90 47 32 64 28 79 98 92 75 18 36 32 24 91 47 4 23 95 85 15 69 90 80 36 98 34 83
13b:
61 93 20 91 34 32 12 81 44 28 59 81 3 95 2 92 99 52 79 12 23 21 1 61 42 46 55 99 70 88 91 57 64 94 91 58 50 82 69 91 84 46 38 77 96 24 53 13 86 7 22 95 78 58 93 95 35 17 34 3 27 44 10 16 14 13 14 30 39 38 57 76 96 32 73 76 63 46 1 89 77 42 51 66 9 23 69 83 65 60 45 20 37 99 91 50 50 37 26 31 59 20 73 23 55 86 29 81 54 68 70 85 30 16 99 87 17 2 44 53
13c:
66 59 38 38 49 7 84 94 26 18 15 30 45 1 99 86 68 74 100 70 86 5 3 11 32 41 74 22 12 20 97 83 8 31 97 89 45 19 96 53 76 92 6 6 44 17 9 22 38 36 60 66 54 12 5 15 23 67 20 81 43 46 50 30 77 93 97 38 42 76
These numbers above are the files, it wouldn't let me send them as a whole. They are "Lab13a.txt, Lab13b.txt, and Lab13c.txt"
Lab 13 Introduction In this you will design an application that will read numbers from three data files, populate an int array, and calculate descriptive statistics. The array should be a one-dimensional int array that has 150 elements. You will need to track the number of elements used as data is entered into the array. The three input files are named Lab13a.txt, Lab13b.txt, and Lab23c.txt. Each file contains a different number of data points. Create a loop that will open each file; read the data and populate the array; do calculations and print results; then close the input file and repeat for the next data file. Instructions 1. Go online to D2L and download lab13.zip. Unzip the file to your USB drive. This zip file has a Bluel package to use as a starting point for your program. It also includes three data files you will use to test your application. 2. Look closely at the code before moving on. The countAbove method is not completely implemented. You will be asked to complete it in the next steps. 3. The method public static double deviation(int[] data, double avg, int elements) has been provided to you. This method calculates the standard deviation of the elements in data. The variable cnt has the count of the number of elements in the array. The algorithm for deviation is provided below. 4. Write the method public static int countAbove(intll data, double avg. int elements). This method should count the number of elements in the data array that are greater than avg The variable cnt has the count of the number of elements in the partially filled array 5. Modify public static void main(String[) args) so that results display to the Bluej terminal in exactly the same format as the sample output. Declare the initial one-dimensional integer array with 150 elements. Your code will need to track the number of elements used in the array Code the appropriate method calls as necessary 6. Write your code such that all three files are read during one run of the application; use a String array to hold the file names. Use this array to open each data file on subsequent iterations Upon completion of this step, show the instructor your results lab13 Page 1 of 3 Lab 13 Introduction In this you will design an application that will read numbers from three data files, populate an int array, and calculate descriptive statistics. The array should be a one-dimensional int array that has 150 elements. You will need to track the number of elements used as data is entered into the array. The three input files are named Lab13a.txt, Lab13b.txt, and Lab23c.txt. Each file contains a different number of data points. Create a loop that will open each file; read the data and populate the array; do calculations and print results; then close the input file and repeat for the next data file. Instructions 1. Go online to D2L and download lab13.zip. Unzip the file to your USB drive. This zip file has a Bluel package to use as a starting point for your program. It also includes three data files you will use to test your application. 2. Look closely at the code before moving on. The countAbove method is not completely implemented. You will be asked to complete it in the next steps. 3. The method public static double deviation(int[] data, double avg, int elements) has been provided to you. This method calculates the standard deviation of the elements in data. The variable cnt has the count of the number of elements in the array. The algorithm for deviation is provided below. 4. Write the method public static int countAbove(intll data, double avg. int elements). This method should count the number of elements in the data array that are greater than avg The variable cnt has the count of the number of elements in the partially filled array 5. Modify public static void main(String[) args) so that results display to the Bluej terminal in exactly the same format as the sample output. Declare the initial one-dimensional integer array with 150 elements. Your code will need to track the number of elements used in the array Code the appropriate method calls as necessary 6. Write your code such that all three files are read during one run of the application; use a String array to hold the file names. Use this array to open each data file on subsequent iterations Upon completion of this step, show the instructor your results lab13 Page 1 of 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
