Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Please help! Thank you! image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions