Question: Please use Java and show every detail. Please dont use anything ideas that are level too high. Thanks. Exercise 3 (15pt) Write a program that

Please use Java and show every detail. Please dont use anything ideas that are level too high. Thanks.  Please use Java and show every detail. Please dont use anything

Exercise 3 (15pt) Write a program that reads positive numbers until the user inserts a negative one (Note: the negative number does not count). After having read the number the program should print: Their average Their minimum and maximum . Their standard deviation (square root of the sum of the squared differences from the mean divided by total minus 1) Wikipedia Their median (the value separating the higher half of a data) Wikipedia Note: for computing the last two statistics you need to store an arbitrary number of number. To do that you will need to implement the InfinitArray class. This class should contain a normal array (doublet I) as storage and provide an add (double value) method which insert values inside the storage. When the storage is full, the add method should create a new storage twice as big and copy all values from the old storage to the new one. This effects into having the same vlues inside the storage but its size will be larger. (Hint: store also the current length of the Infhitarray which can be different from storage. length) You can add other fields, getters (e.g., at (int index), or methods (e.g,, sort)). Please provide also an UML diagram of your class. Example: Insert numbers (terminate with negative number): > 2.1 2.6 5 Their average is 1.9 Their min/max is 1.0/2.6 Their standard deviation is 0.6683312551921144 Their median is 2.1

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!