You are on page 1of 1

Java Coding Exercise Sample Statistics Write a java program to perform the following tasks.

. You can structure it in as many or few classes & methods as you choose. We will be looking at all aspects of your solution including design choices, coding style, and comments. Requirements 1. Create an eclipse project for the solution. 2. The solution should be callable form the command line with the following arguments: a. Number of files b. Sample size c. Minimum integer limit d. Maximum integer limit e. Output directory 3. The solution should generate a number of text files given by argument (a) in the output directory given by argument (e) 4. Each text file should contain a list of numbers, with each number on a new line. a. The sample size should be given by argument (b) b. The sample should be randomly selected from the integers, between the limits given in arguments (c) and (d) 5. Calculate the following statistics for the sample. a. Sum b. Count c. Average d. Standard Deviation e. Median 6. A blank line should follow the list of integers in the file. After the blank line, write the following text, displaying the results of the calculated statistics. Sum = <calculated sum> Count = <count> Average = <calculated_average> Standard Deviation = <calculated_standard_dev> Median = <median_value> Please submit a zip file of the complete eclipse solution.

You might also like