NumericAnalyzer will accept a list of 1 or more numbers as command line arguments. NOTE: Don’t prompt the user for input – this is an exercise passing values to your program via the command line!  We’re forcing the user to “push” data values to the application rather than “pull” it from the user! Error checking: if the user fails to pass in parameters, the program will display an error message (of your choice) and exit early. EXTRA CREDIT (+5) Data Validation – flag non-numeric parameters as “invalid data” and exit early. The main() method’s String [] args argument values must be converted and assigned to a numeric/integer array and passed to an instance of NumericAnalyzer. (SEE EXAMPLE main() IMPLEMENTATION BELOW).    main() should also be responsible for error checking logic. Your program will display the following information about the numbers provided by the user: The set of numbers provided by the user sorted ascendingly. NOTE: DO NOT implement your own sort algorithm! Part of this assignment is to begin discovering functionality provided by Core Java. Here’s a good place to start: https://www.geeksforgeeks.org/arrays-sort-in-java-with-examples/ The size of number list (the number of numbers!) The average or mean The median - the middle ‘value’ of the set of numbers sorted. Specific Definition: Case 1 – odd set of numbers: Median is the middle value.   Case 2 – even set of numbers: Median is the average of the middle 2 values Odd Sized Example 2 3 4 8 12 16 32 = 8           ^ Even Sized Example 1 3 4 12 16 32   =  4 + 12 = 16 / 2 = 8        ^  ^ The min value. The max value. The sum The range: the difference between the max and min Variance: Subtract the mean from each value in the list. This gives you a measure of the distance of each value from the mean. Square each of these distances (and they’ll all be positive values), add all of the squares together, and divide that sum by the number of values (that is, take the average of these squared values) . Standard Deviation: is simply the square root of the variance.     Development / solution guidelines: The output should be neat, formatted and well organized – should be easy on the eyes (see sample output below). Just as with lab 1, follow through the link below to reference “printf()” method usage in Java.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
  • NumericAnalyzer will accept a list of 1 or more numbers as command line arguments.

NOTE: Don’t prompt the user for input – this is an exercise passing values to your program via the command line!  We’re forcing the user to “push” data values to the application rather than “pull” it from the user!

  • Error checking:
    • if the user fails to pass in parameters, the program will display an error message (of your choice) and exit early.
    • EXTRA CREDIT (+5) Data Validation – flag non-numeric parameters as “invalid data” and exit early.
  • The main() method’s String [] args argument values must be converted and assigned to a numeric/integer array and passed to an instance of NumericAnalyzer. (SEE EXAMPLE main() IMPLEMENTATION BELOW).   
    main() should also be responsible for error checking logic.
  • Your program will display the following information about the numbers provided by the user:
    1. The set of numbers provided by the user sorted ascendingly.
      NOTE: DO NOT implement your own sort algorithm!
      Part of this assignment is to begin discovering functionality provided by Core Java.
      Here’s a good place to start:
      https://www.geeksforgeeks.org/arrays-sort-in-java-with-examples/
    2. The size of number list (the number of numbers!)
    3. The average or mean
    4. The median - the middle ‘value’ of the set of numbers sorted. Specific Definition:
      • Case 1 – odd set of numbers:
        • Median is the middle value.  
      • Case 2 – even set of numbers:
        • Median is the average of the middle 2 values

Odd Sized Example

2 3 4 8 12 16 32 = 8
          ^

Even Sized Example

1 3 4 12 16 32   =  4 + 12 = 16 / 2 = 8
       ^  ^

  1. The min value.
  2. The max value.
  3. The sum
  4. The range: the difference between the max and min
  5. Variance: Subtract the mean from each value in the list. This gives you a measure of the distance of each value from the mean. Square each of these distances (and they’ll all be positive values), add all of the squares together, and divide that sum by the number of values (that is, take the average of these squared values) .
  6. Standard Deviation: is simply the square root of the variance.

 

 

Development / solution guidelines:

The output should be neat, formatted and well organized – should be easy on the eyes (see sample output below).
Just as with lab 1, follow through the link below to reference “printf()” method usage in Java. 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Study of Characters
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education