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:
432 771 175 859 939 915 31 27 832 954 463 836 508 394 385 490 394 942 19 672 -9 871 596 613 404 495 949 199 546 860 826 414 559 767 419 716 531 958 -6 947 410 615 208 161 483 694 516 400 732 913 211 144 303 785
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
