Question: Please help! Thank you! CM111 Spring 2018 Assignment 5 Due March 2 Purpose This assignment will help you become more familiar with single-dimension arrays Activity
CM111 Spring 2018 Assignment 5 Due March 2 Purpose This assignment will help you become more familiar with single-dimension arrays Activity Write a program that reads values from a data file, computes the average for the numbers, then counts the number of values that are greater than the average, and the number of values that a average. You will write code in five methods as follows: re less than the A method that reads values from a file and fills an array (fillArray). . A method to compute and return the average of the values in the array (average) . A method to count the numbers in the array that are greater than the avera A method to count the numbers in the array that are less than the average( . In mai in method, call the other methods in the appropriate order, assigning returned values to appropriate variables; then print the results Process 1. Download the assignment5.zip file from D2L. 2. Extract the zip file. 3. Locate and open the package.bluej file 4. You will find the shell of the main, fillArray, average, countAbove and countBelow methods. 5. Write your code in each method where indicated to produce the required results. Your output should look like this: The average is 46.73 of the 100 values, 46 values are greater than, and 54 less than the average. If you have questions or encounter problems completing this assignment, contact the instructor by email; include your assignment5.java file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
