Question: Using Java ArrayList, write a program that prints all the results shown in dataset.txt in a readable output. For example, to print the smallest number

Using Java ArrayList, write a program that prints all the results shown in dataset.txt in a readable output. For example, to print the smallest number found, do: The smallest number found in the list of numbers is: -13. Do not just print -13.

1. Read a file called dataSet.txt that consists of multiple integer numbers. Use this for the ArrayList. 2. Determine how many numbers were read 3. Determine the smallest number 4. Determine the largest number 5. Determine the sum of all numbers 6. Determine the mean 7. Determine the median value 8. Sort and display all numbers read in ascending order. Display 10 numbers per line 9. Store all results above into a file called datasetAnalysis.txt

dataset.txt:

438 963 513 697 346 136 890 491 423 243 502 586 534 126 417 421 675 211 74 361 903 594 501 814 20 91 401 354 41

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!