subject

Write a program that includes an ArrayStats class as described below (you need to write the class and its methods). The program should read a number from the keyboard (prompting for it accordingly), this number will indicate the size of an array of integers that the program needs to create. Then the program should use an instance of the Random class to store a random integer between 1 and 100 in each element of the array. The program should then print the array out (properly formatted) and use the ArrayStats class to find and print the smallest, the biggest, the mean, the median, the standard deviation and the range of the values in the array (difference between the biggest and the smallest). It should also print the number of times a method in the ArrayStats class was called in total. ArrayStats class should include the following static method: a) A method that accepts an array of integers and returns the smallest value b) A method that accepts an array of integers and returns the biggest value c) A method that accepts an array of integers and returns its mean d) A method that accepts an array of integers and returns its median e) A method that accepts an array of integers and returns its standard deviation And it should also keep a counter (static variable) which should be incremented every time a method of the class is called.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:30
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 2
question
Computers and Technology, 22.06.2019 23:00
In which part of a professional email should you try to be brief, but highly descriptive?
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
Jacking is a crime that takes place when a hacker misdirects url to a different site. the link itself looks safe, but the user is directed to an unsafe page
Answers: 1
You know the right answer?
Write a program that includes an ArrayStats class as described below (you need to write the class an...
Questions
question
Mathematics, 11.08.2021 01:00
question
Chemistry, 11.08.2021 01:00
question
Mathematics, 11.08.2021 01:00
question
Chemistry, 11.08.2021 01:00
Questions on the website: 13722367