Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that: a. reads from the terminal a sequence of numbers (integers) b. saves them to a file with the name given from

Write a program that: a. reads from the terminal a sequence of numbers (integers) b. saves them to a file with the name given from the command line c. calculates, then displays on the terminal, and also saves to that file the maximum, minimum, and average. Additional requirements: Store the numbers in a LinkedList. Define a class DataAnalyzer that * has a constructor that stores the list of numbers: public DataAnalyzer(LinkedList numList) {...} * has a method each for computing min(), max() and average(): public int min() {...}, etc. Define a class DataAnalyzerTester that reads the numbers from System.in, builds the number list, creates the DataAnalyzer object, and displays the min, max, and average using the DataAnalyzer instance. The DataAnalyzerTester class implements the main() method. Your code needs to handle invalid input and I/O exceptions. Write javadoc comments. Include both java files in your solution document.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Can workers be trained in ethics? How? Defend your answer.

Answered: 1 week ago