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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started